home *** CD-ROM | disk | FTP | other *** search
/ Asymetrix Multimedia Toolbook 4.0 (CBT Edition) / Asymetric Multimedia Toolbook 4.0 (CBT Edition).iso / ctb40sm.z / LIBRARY.TBK (.txt) < prev    next >
Asymetrix ToolBook File  |  1995-11-13  |  871KB  |  14,151 lines

  1. searchReplace pm
  2. gref 
  3. bitmap "plus"
  4. minus"
  5. sofar 
  6. tchar 
  7. ~(pm,
  8. fs > 0
  9. graphic 
  10. t,tl,sh
  11. (selectedtextlines 
  12. lockScreen 
  13. a1Loc 
  14. ~(a1,tl)
  15. subheadings(outLineNumber(n,t)) 
  16. k& sh 
  17. curLevel 
  18. indentLevel(tl)
  19. FALSE
  20. keyenter
  21. operatingMode 
  22. value
  23. curmode 
  24. source 
  25. "off"
  26. notifybefore 
  27. operatingmode 
  28. oldBook 
  29. notifyafter 
  30. subHeadings 
  31. t,tl,retval
  32. n,i,headingLevel,testLevel,prevTestLevel,retlinecount
  33.         -- 
  34. textLineNumber(
  35. ,t)        
  36.         -- find out what level 
  37.         -- point 
  38.         -- 
  39. y, so 
  40. outermost 
  41. headinglevel 
  42.     -- walk through 
  43. outline, grabbing everything that 
  44.     --one 
  45. below current 
  46.         -- 
  47. results
  48. 9& tl & 
  49.         -- 
  50. a child 
  51. a "+" 
  52. tabs (ignoring "+" 
  53. "-") preceding a 
  54. counter 
  55. xansitoChar(1)
  56. -- returns numbers 
  57. form "1,3,2,1" etc
  58. -- based on a given 
  59. outlineNumber 
  60. , theText
  61. Zt,n,i,currentIndentLevel,retVal
  62. 1 -- 
  63. only 
  64.             -- found 
  65.             -- 
  66. elder sibling
  67.             -- 
  68. ''s descendant
  69. actual 
  70. -- corresponds 
  71. textlineNumber 
  72. ZiLevel,n,iSibling,
  73. 1 -- 
  74. foundNextSibling 
  75. t) > 
  76. -1 -- 
  77. t) < 
  78. -1 -- 
  79. -- didn't 
  80. expected older 
  81. -- therefore 
  82. specified isn't 
  83. notifyAfter 
  84. eresource 
  85. notifyBefore 
  86. ogoes 
  87. "Use 
  88. o, on 
  89. widget."
  90. "You must 
  91. 4copying 
  92. f"Save" 
  93. "Cancel"
  94. saveAs
  95. -- Drag 
  96. drop outline arrangement
  97. -- Joseph Brick, November 93
  98. -- This 
  99. main dragAndDrop code:
  100. ZstartLine,endLine,lineHeight,mybounds,xloc,mytext
  101.     -- Find 
  102. Bclicked on. 
  103. qwill be 
  104. ustarting 
  105.     -- Break 
  106. user 
  107. G edge 
  108. startline < 0
  109. Uwe want 
  110. n. we 
  111. value
  112.     -- later 
  113. handler, 
  114. we've 
  115.  a heading:
  116. endline 
  117.     -- lineheight 
  118. pageUnits 
  119. (see 
  120. V below):
  121.     -- Cache commonly used values 
  122. xpix 
  123. sysPageUnitsPerPixel
  124. ypix 
  125. myBounds 
  126. myText 
  127. marker 
  128. totalLineCount 
  129.  we know 
  130. be between 
  131. sides 
  132. xLoc 
  133. + xPix
  134.     -- The following section selects 
  135. B(s):
  136.     -- lineList 
  137. a list corresponding 
  138. selectedTextLines 
  139.     -- we wish 
  140. 9-- (We've 
  141. count 
  142.         -- Walk down 
  143. Zwe hit another 
  144.         -- incrementing 
  145. needed:
  146. oselectedTextlines 
  147. moves 
  148. arrow up 
  149.     -- targetLine 
  150. insertion point 
  151. loop executes 
  152. mousebutton 
  153. released:
  154. mouseLoc 
  155.         -- 
  156. above 
  157.             -- calculate 
  158. Ucurrently 
  159.         -- 
  160. - yPix
  161. there's 
  162. beyond 
  163.             -- 
  164. somewhere 
  165.         -- 
  166.             -- vertLoc 
  167.             -- lineYloc returns 
  168. `location 
  169. a given 
  170.         -- 
  171.             -- 
  172. inside 
  173. U(s):
  174. toward 
  175. U(s) 
  176. 1 place 
  177.         -- 
  178. that we 
  179.         -- numLines 
  180.         -- 
  181. targetline > 
  182. CRLF & 
  183.         -- we 
  184. asure 
  185.     moved 
  186.         -- 
  187.         -- 
  188. original 
  189.         -- 
  190. "," & 
  191.  font:
  192. occluded (
  193. xhidden, but covered) 
  194. "sizeSample" 
  195. units 
  196. lineNum,b,
  197. 2 - 1 - 
  198. -- adjusts 
  199. . Called 
  200. adjustSize n
  201.  * n + 3*
  202. v - 5*
  203. -- Slider control 
  204. begins here
  205. -- NOTES ABOUT IDENTIFIERS
  206. -- s_slider prefix     ->
  207. ZSTRING className
  208.  = txClassName 
  209. FALSE
  210. c"Thumb"
  211. setSliderLimits 
  212. 4s_sliderv, s_sliderMin, s_sliderMax, s_sliderPosition
  213. A = loc --
  214. & flag 
  215. prevent updating 
  216. mouse 
  217. xmoved
  218. s_sliderV <> 
  219. "HSliderThumb"
  220. B)), 
  221. sldrPosition 
  222. slidePos(
  223. "VSliderThumb"
  224. snapSlider(
  225. Q1 - 
  226. glide 
  227. width 
  228. height 
  229.  thumbPosition, 
  230. b(0,(
  231. j) /(
  232. value
  233.             -- Another 
  234. may be 
  235. controlling 
  236. OldMin 
  237. OldMax 
  238. j(1,(
  239. "vSliderThumb"
  240. pOffset 
  241. ) * (1-
  242. newPos 
  243. "hSliderThumb"
  244.             -- Restore state 
  245. ZSTACK detents
  246.  = detentList 
  247. catchRange 
  248. M) < 0
  249.     -- Slider control 
  250. begins here
  251. -- NOTES ABOUT IDENTIFIERS
  252. -- s_slider prefix -> 
  253. ZSTRING className
  254.  = txClassName 
  255. c"Thumb"
  256. setSliderLimits 
  257. 4s_sliderv, s_sliderMin, s_sliderMax, s_sliderPosition
  258. loc -- flag 
  259. prevent updating 
  260. mouse 
  261. xmoved
  262. s_sliderV <> 
  263. "HSliderThumb"
  264. B)), 
  265. sldrPosition 
  266. slidePos(
  267. "VSliderThumb"
  268. snapSlider(
  269. Q1 - 
  270.         glide = 
  271.         width = 
  272. centered 
  273.         height = 
  274.  thumbPosition, 
  275. b(0,(
  276. j) /(
  277. value
  278.             -- Another 
  279. may be 
  280. controlling 
  281. OldMin 
  282. OldMax 
  283. j(1,(
  284. "vSliderThumb"
  285. pOffset 
  286. ) * (1-
  287. newPos 
  288. "hSliderThumb"
  289.             -- Restore state 
  290. ZSTACK detents
  291.  = detentList 
  292. catchRange 
  293. M) < 0
  294. -- sets the thumb 
  295. location specifed
  296. sliderPos 
  297. value
  298. Zscale
  299. sliderMin 
  300. sliderMax 
  301. mySliderPos 
  302. xPix 
  303. sysPageUnitsPerPixel
  304. sliderBounds 
  305. "bar" 
  306. nearestPupp(
  307. oldP 
  308. nearestPUPP(
  309. percentage 
  310. newP 
  311. x1 + (x2-x1-w)*
  312. sliderMove 
  313. -- renumbers 
  314. labels 
  315. , numTics, 
  316. tallTicSpacing 
  317. adjustNumbers
  318. numFields 
  319. w / ts
  320. j) / 
  321. 5),10)
  322. curfield 
  323. xCenter 
  324. U(i*ts) 
  325. ),10)+1 
  326. -- centers 
  327. {horizontally on 
  328. maximum 
  329.  && "
  330. invalid."
  331. mySliderMax 
  332. minimum 
  333.  && "
  334. mySliderMin 
  335. frequency 
  336. tic marks on 
  337. high 
  338. U"0" 
  339. U"0" 
  340. FALSE
  341. myTallTicSpacing 
  342. tics on 
  343.  > 50 
  344.  must be a 
  345.  between 1 
  346. thumbWidth 
  347. U"base" 
  348. (x2 - x1) / 
  349. leftMost 
  350. curLine 
  351. curline 
  352. myNumTics 
  353. gets 
  354. above.
  355. -- notify handlers 
  356. Mthese messages aren't handled.
  357. notifyBefore startSliderMove
  358. *endSliderMove
  359. -- returns 
  360.  whole pixel, 
  361. pageunits
  362.  val,
  363. Jprimary mouse 
  364. primaryMouseButton
  365.     linkDLL "user"
  366. getSystemMetrics(
  367. 23) > 0
  368.     unlinkDLL "
  369. --Copyright 
  370.  1991-1994
  371. Asymetrix Corporation
  372. gives you permission 
  373. e, revise 
  374. reuse the 
  375. --individual 
  376. scripts 
  377. your own 
  378. --applications.
  379. You may 
  380. x, however, 
  381. Sentire 
  382. --substantial part 
  383. redistribution 
  384. jproduct.
  385. retains 
  386. copyright on 
  387. original elements 
  388.  . Include 
  389. notice "Portions 
  390.  are 
  391. they 
  392. --contain 
  393. copied 
  394. --A note on language independence:
  395. For ease 
  396. translating 
  397. strings 
  398. readers that come 
  399. functions located 
  400. --The names 
  401. these 
  402. letters: "
  403. toggleStatus
  404. openWindow
  405. 4memory, theStore, svNumFormat
  406. = TRUE
  407. [displays 
  408. initialize 
  409. up formats
  410. B"clear_all"
  411. l = 0
  412. k = 0
  413. "0" & sysDecimal & "00"
  414. o= default
  415. = FALSE
  416. --controls 
  417. numbers, checks 
  418. overflow, multiple 
  419. --points, sets 
  420. Jkey value 
  421. generic 
  422. 4last_key
  423. ") >= 16 
  424. continued 0's
  425. " = 0 
  426. --replace 
  427. " = 0 
  428. "0." 
  429. --append 
  430. "0." 
  431. keystroke
  432. --This 
  433.  performs calculations.
  434. If no values had been entered 
  435. --saved, 
  436. 're repeatedly hitting 
  437. same operator 
  438. , no action
  439. taken.
  440. If one 
  441. passed 
  442. jno other 
  443. If two 
  444. calculated 
  445. previously stored 
  446. their 
  447. --result 
  448. displayed 
  449. scrollable tape.
  450. val1. 
  451.  new_op 
  452. op, savekey
  453. --ignore 
  454.  hits on 
  455. "+-x/") 
  456. "+-x/"))
  457. --special 
  458. equal sign 
  459. x"mr" 
  460. x"math"
  461. have 
  462. .out 
  463. dividing 
  464. --only 
  465. operation
  466. " = 0
  467.  strNoZeroDivide()
  468. under/
  469. c strOverflow()
  470. c strUnderflow()
  471. handler intercepts 
  472. strokes 
  473. If a 
  474. --calculator 
  475. equivalent 
  476. pressed, a 
  477. Emessage 
  478. sent 
  479. corresponding 
  480. ZSTRING keyAsChar
  481. "0123456789+-*/="&
  482. ("0") 
  483. ("9")
  484. ("0"))
  485.  = "*"
  486.  = "x"
  487.  = "="
  488. posNum num
  489. isType(REAL, 
  490.  >= 0
  491. strDisplayNumber fValue
  492. If there's no dec pt don't 
  493. There's a 
  494. "Can't divide 
  495. --    Tim Pearson, Asymetrix    1/94
  496. customEdit
  497. 4            s_answerMessages
  498. Z            init, box, answers
  499. Z    LONG    i
  500.     linkDLL sysToolBookDirectory & "tb40dlg.dll"
  501.         STRING    DialogCallback        (WORD,
  502. &SetValue            (
  503. @     GetValue            (
  504.         INT        AddListBoxItem        (
  505. $DeletenListBoxItem    (
  506. EEnableControl        (
  507. GetControlText        (
  508. GetDialogFocus        (
  509. GetListBoxItems        (
  510. GetListBoxSelection    (
  511. GetnListBoxSelection(
  512. SetControlText        (
  513. SetDialogFocus        (
  514. SetListBoxItems        (
  515. SetnListBoxSelection(
  516.         INT     endTBKDialog        (
  517.  = ",G3597,Answers:
  518. ,S3603,
  519. Send When Chosen:
  520. LISTBOX 
  521. ,L3596,
  522. BUTtoN 
  523. ,B3600,NODISMISS
  524. delete,B3601,
  525. ,B3602,
  526. #EDIT message,E3604,
  527. Iok,B1,TRUE
  528. J,B3606,FALSE"
  529.     box = "524480,9,25,25,228,104,,,
  530.  Multiple Choice,8,MS Sans Serif,,2,4,171,80,3597,1342177287,128,
  531. ,0,,5,59,125,7,3603,1342177280,130,
  532. ,5,17,124,39,3596,1352728577,131,,0,
  533. ,133,17,37,12,3600,1342242816,128,&Add,0,
  534. 133,31,37,12,3601,1342242816,128,&
  535. ,133,45,37,12,3602,1342242816,128,&
  536. ...,0,
  537. 5,69,124,11,3604,1350631552,129,,0,ok,178,7,44,12,1,1342242817,128,OK,0,
  538. J,178,22,44,12,3606,1342242816,128,Cancel,0"
  539. Bi - 1 
  540. i - 1 
  541. "listBox 
  542. (windowhandle 
  543.     unlinkDLL 
  544. y & "
  545. TBKDialogInit    hDlg,ctrlId,hWnd,msg,ctrlName
  546. , cnt
  547. l"listbox 
  548. U = textlineCount(
  549. o <= 1
  550. TBKDialogCommand    
  551. Z    OBJECT    thisLayer
  552. Z            sel, foc, 
  553. , newAnswer, cnt, answerCount, oldScript
  554. msg = 1
  555.  Caption:" 
  556. r<> "
  557. Bsel 
  558.  = "Button 
  559.         cnt = 
  560. ) + 1
  561.  &" & 
  562. -1,0)
  563.     " & 
  564. 4     = 
  565. <> NULL 
  566. }    ",sel)
  567. = cnt
  568. - 1 <= 1
  569.         foc    = 
  570. r<> "
  571.         lockScreen 
  572. ) - 1
  573.  < cnt
  574. ) - 1 > 
  575. " & (i - 1)
  576. " & i
  577.  &" & i
  578.  = objLayer(
  579. B" && QUOTE & "
  580. " & i & 
  581. " && 
  582. buttonClick" & CRLF & \
  583. TAB & "
  584. >" & 
  585. editWidget" & 
  586. }" & 
  587.             autoRadioButtons 
  588.             tbk_wid_name 
  589.             tbk_wid_props 
  590.             tbk_wid_values 
  591. = i - 1
  592. Bi - 1 
  593. i - 1 
  594. i - 1 
  595. i - 1 
  596. 0) -- 0 = 
  597. notifyBefore 
  598. --    Tim Pearson, Asymetrix    1/94
  599. customEdit
  600. 4            s_answerMessages
  601. Z            init, box, answers
  602.     linkDLL sysToolBookDirectory & "tb40dlg.dll"
  603.         STRING    DialogCallback        (WORD,
  604. &SetValue            (
  605. @     GetValue            (
  606.         INT        AddListBoxItem        (
  607. $DeletenListBoxItem    (
  608. EEnableControl        (
  609. GetControlText        (
  610. GetDialogFocus        (
  611. GetListBoxItems        (
  612. GetListBoxSelection    (
  613. GetnListBoxSelection(
  614. SetControlText        (
  615. SetDialogFocus        (
  616. SetListBoxItems        (
  617. SetnListBoxSelection(
  618. endTBKDialog        (
  619.  = ",G3597,Answers:
  620. ,S3603,
  621. Send When Chosen:
  622. LISTBOX 
  623. ,L3596,
  624. BUTtoN 
  625. ,B3600,NODISMISS
  626. delete,B3601,
  627. ,B3602,
  628. #EDIT message,E3604,
  629. Iok,B1,TRUE
  630. J,B3606,FALSE"
  631.     box = "524480,9,25,25,228,104,,,
  632.  Multiple Choice,8,MS Sans Serif,,2,4,171,80,3597,1342177287,128,
  633. ,0,,5,59,125,7,3603,1342177280,130,
  634. ,5,17,124,39,3596,1352728577,131,,0,
  635. ,133,17,37,12,3600,1342242816,128,&Add,0,
  636. 133,31,37,12,3601,1342242816,128,&
  637. ,133,45,37,12,3602,1342242816,128,&
  638. ...,0,
  639. 5,69,124,11,3604,1350631552,129,,0,ok,178,7,44,12,1,1342242817,128,OK,0,
  640. J,178,22,44,12,3606,1342242816,128,Cancel,0"
  641. Bi - 1 
  642. i - 1 
  643. "listBox 
  644. (windowhandle 
  645.     unlinkDLL 
  646. y & "
  647. TBKDialogInit    hDlg,ctrlId,hWnd,msg,ctrlName
  648. , cnt
  649. l"listbox 
  650. U = textlineCount(
  651. o <= 1
  652. TBKDialogCommand    
  653. {    thisLayer
  654. Z            sel, foc, 
  655. , newAnswer, cnt, answerCount, oldScript
  656. msg = 1
  657.  Caption:" 
  658. r<> "
  659. Bsel 
  660.  = "Button 
  661.         cnt = 
  662. ) + 1
  663.  &" & 
  664. -1,0)
  665.     " & 
  666. ,     = 
  667. <> NULL 
  668. u    ",sel)
  669. = cnt
  670. - 1 <= 1
  671.         foc    = 
  672. r<> "
  673.         lockScreen 
  674. ) - 1
  675.  < cnt
  676. ) - 1 > 
  677. " & (i - 1)
  678. " & i
  679.  &" & i
  680.  = objLayer(
  681. B" && QUOTE & "
  682. " & i & 
  683. " && 
  684. {" & CRLF & \
  685. TAB & "
  686. }" & 
  687. >" & 
  688. editWidget" & 
  689. }" & 
  690.             tbk_wid_name 
  691.             tbk_wid_props 
  692.             tbk_wid_values 
  693. = i - 1
  694. Bi - 1 
  695. i - 1 
  696. i - 1 
  697. i - 1 
  698. 0) -- 0 = 
  699. notifyBefore 
  700. pointerObj
  701. "hand" 
  702. -- returns the 
  703. dialPos
  704. angle 
  705. rotation 
  706. dialMin 
  707. dialMax 
  708. startAngle 
  709. endAngle 
  710. angleRange 
  711. -- sets 
  712. its proper 
  713. value
  714. syssuspendMessages 
  715. coords 
  716. "face" 
  717. +)/2,\
  718. radians) 
  719. angleFromPoint 
  720. (((Atan2(y-cy,x-cx)+2.5*
  721. )/(2*
  722. ))*360) 
  723. -- handles dragging 
  724.  around
  725. dialMove 
  726. endDialMove 
  727. )/2,\
  728. (ctr,
  729. dstart 
  730. +360))
  731. dend 
  732. 3> 180
  733. k360 > 
  734. k360)
  735. numTics 
  736. syssuspendmessages 
  737. )/2,\
  738. radius 
  739. ) - (
  740. ))/2 
  741. tallTicSpacing 
  742. )/360 * (2 * PI) - (PI / 2)
  743. <= 10
  744. curField 
  745. curfield 
  746. 500,200
  747. centerPosition 
  748. + ((1+sz*2) * 
  749. + ((1+sz*2) * 
  750. )*(i/
  751. )), \
  752. + ((1+sz) * 
  753. + ((1+sz) * 
  754. myNumTics 
  755. mydialMax 
  756. dialmin 
  757. mydialMin 
  758. myTallTicSpacing 
  759. numtics 
  760. myStartAngle 
  761. myendAngle 
  762. -- General 
  763. handler.
  764. -- Supports 
  765. single 
  766. -- Joseph Brick, Oct 93.
  767. -- Notes about 
  768. routine:
  769. -- ToolBook allows unrestricted values 
  770. following 
  771. . This 
  772. a fully 
  773. -- rotates these 
  774. }. All other 
  775. }are oriented along a 90 degree 
  776. -- axis. 
  777.  just moves 
  778. Owithout
  779. -- rotating their 
  780. -- A note on storing polar coordinates: 
  781. order 
  782.  converts 
  783. Cartesian 
  784. -- (stored 
  785. %integers) 
  786. h (manipulated 
  787. %real numbers),
  788. When converted 
  789. acan suffer
  790. rounding errors 
  791. {may become more 
  792. skewed each
  793. Iyou 
  794. To avoid 
  795. routines 
  796. -- change 
  797. shape 
  798. distance 
  799. running 
  800. option, 
  801. will have 
  802. reset the
  803. Hsending 
  804. storePolar 
  805. -- Parameters:
  806. -- obj:
  807. Object 
  808. be rotated.
  809. Can use 
  810. toolbook 
  811. {. Required.
  812. -- ctr:
  813.  which 
  814. P. Default 
  815. structInfo[]
  816. xangle,yangle,
  817. ,cx,cy,radAngle,MouseAngle,longestH,storedAngle
  818. x,y,fp
  819. Zstack v,vtemp,loc
  820. Zgraphic curObj
  821. myRotation 
  822.     -- If 
  823. xprovided, base 
  824. b + (
  825. b + (
  826. a list 
  827. objlist 
  828. total 
  829. vCount 
  830. objCount 
  831.     -- loop goes once 
  832. curObjType 
  833.         -- If 
  834.         -- 
  835. kover:
  836. objList
  837.             -- 
  838. fsetable 
  839. maliable 
  840. isArcOrPie 
  841. b + (
  842. b + (
  843. curVCount 
  844.             -- Add 
  845. {reference 
  846.             -- 
  847.             -- walk through 
  848. current 
  849. y distances 
  850. -- find length 
  851. vector:
  852. undefined 
  853. )x=0,y=0:
  854. dx=0 
  855. (dx,dy)
  856. +(dy,dx)- (rot/360)*(2*
  857. [vcount+i][1] 
  858.     array 
  859. fa row 
  860.     -- Each 
  861. stores a 
  862.  vertice.
  863. ,cx,cy,
  864. x,y,fp
  865. \     supplied 
  866. /360) * 2*
  867. b + (
  868. b + (
  869. they 
  870. already 
  871. propsStored 
  872. uprops 
  873. I,ctr
  874. section 
  875. resets 
  876.  repetition specified:
  877.             -- 
  878.             -- adjust 
  879. Hnewangle, 
  880. x,y coorinates:
  881. countV 
  882. curIndex 
  883. ][2]+
  884. 0][1]
  885. x(j = 1 
  886. (rd)*h 
  887. f(rd)*h 
  888. cxObj 
  889. cyObj 
  890. (rd)*h 
  891. f(rd)*h 
  892. iterate 
  893. sized
  894. sysSuspendMessages 
  895. b(sz),
  896. b(sz)
  897. -- stub notify handlers, 
  898.  sends
  899. notifyAfter 
  900. enddialMove 
  901. notifyBefore 
  902. 4s_lheight
  903. notifyAfter 
  904. linkStuff
  905. fontChange 
  906. answers 
  907. sized
  908. moved
  909. -- getting, setting the responses
  910. value
  911. answerList 
  912. valCount 
  913. drawLine i,
  914. valcount+1 
  915. -- drawing 
  916. bleftN,rightN,setProp
  917. angLine 
  918. leftRef 
  919. rightRef 
  920. leftTLBE 
  921. textLineBeginEnd(
  922. rightTLBE 
  923. leftX 
  924. G+ 30
  925. leftY 
  926. rightX 
  927. J- 30
  928. rightY 
  929. X+150,
  930. :-150,
  931. -- returns a list 
  932. 3 numbers:
  933. -- 1: twips 
  934. beginning 
  935. -- 2: 
  936. -- 3: 
  937. lineheight 
  938. leftmarg 
  939. relativeLine 
  940. n < 1
  941. 4-lh) * lh > 
  942. 0,0,0
  943. leftBound 
  944. leftMarg
  945. rightbound 
  946. +stringLen(
  947. midLine 
  948. * lh - (stringHeight() 
  949. s,rightBound,
  950. Bunder a point
  951. -- differs 
  952. that will only 
  953. there 
  954. actually a 
  955. textLineFromPoint mp
  956. b) > lh * (
  957. -scr)
  958. tlineNum 
  959. b +lh) 
  960. b + ind
  961.  windows 
  962.  stuff 
  963. linkstuff
  964. X"gdi"
  965. getTextExtent(
  966. gselectObject(
  967. deleteObject(
  968. gcreateFont(
  969.     linkDLL "user"
  970. ggetDC(
  971. releaseDC(
  972. makefont fontName,pitch,
  973. weight 
  974. ghfont,hOldObject,hdc
  975. sysClienthandle)
  976. syspageunitsperpixel
  977. fheight 
  978. ((1440/
  979. /72)) -- 
  980. pixels
  981. hFont 
  982. <,0,0,0,
  983. ,0,0,0,0,0,0,0,0,
  984. "Failure: no logical 
  985. created."
  986. -- kills 
  987. destroyFont
  988. sysclienthandle,
  989. a given 
  990. fref 
  991. makeFont 
  992.     length 
  993. str,strlen
  994. strLen 
  995.     retval = (
  996. k65536) * 
  997. "aaa",3) 
  998. y65536) * 
  999. -- change cursor 
  1000. resize 
  1001. entering
  1002. default 
  1003. leaving
  1004. handler resizes the 
  1005. splitter 
  1006. dragged
  1007. ZstartPos
  1008. X"user"
  1009. getsystemmetrics(
  1010. ( has swapped mouse buttons.
  1011. >23) >0
  1012. leftMouseButton 
  1013. width 
  1014. navigation 
  1015. minwidth 
  1016. maxwidth 
  1017. leftWindow 
  1018. rightWindow 
  1019. leftWindowWidth 
  1020. clientSize 
  1021. wholeWindowWidth 
  1022. clientsize 
  1023. leftMost 
  1024. minWidth
  1025. rightMost 
  1026. j(maxWidth,
  1027. splitterBounds 
  1028. DC's 
  1029. ;windows, since we'll be drawing 
  1030.     -- on 
  1031. hDCLeft 
  1032. getDC(clienthandle 
  1033. hDCright 
  1034. a pen
  1035. hPen 
  1036. createPen(0,2,0)
  1037. ! on 
  1038. ;DC's, storing old selected
  1039. hOldObjectleft 
  1040. selectObject(
  1041. hOldObjectMain 
  1042. modes 
  1043. oldROP2right 
  1044. setROP2(
  1045. oldROP2left 
  1046. windowRef 
  1047. curDC 
  1048. oldP 
  1049. mousePosition 
  1050. oldp <> 
  1051.             -- erase 
  1052. drawLine 
  1053. ,endPos
  1054. we need 
  1055. switch 
  1056. DC's, release them
  1057. deleteObject(
  1058. releaseDC(
  1059. hDCleft
  1060. RightBorder 
  1061. currentpage 
  1062. leftwindow 
  1063. syspageUnitsPerPixel
  1064. sizePage
  1065. -- draws a 
  1066. specified DC
  1067. endpos 
  1068. fromPoint 
  1069. PageUnitsToClient(
  1070. toPoint 
  1071. moveTo(
  1072. lineTo(
  1073. T9^6I9w
  1074. p8^8u4
  1075. Mouse browsing
  1076. label
  1077. Mouse browsing
  1078. US map
  1079. Washington
  1080. capital
  1081. Olympia
  1082. Montana
  1083. capital
  1084. Helena
  1085. Oregon
  1086. capital
  1087. Salem
  1088. California
  1089. capital
  1090. Sacramento
  1091. Nevada
  1092. capital
  1093. Carson City
  1094. Idaho
  1095. capital
  1096. Boise
  1097. capital
  1098. Salt Lake City
  1099. Wyoming
  1100. capital
  1101. Cheyenne
  1102. Arizona
  1103. capital
  1104. Phoenix
  1105. New Mexico
  1106. capital
  1107. Santa Fe
  1108. Colorado
  1109. capital
  1110. Denver
  1111. Texas
  1112. capital
  1113. Austin
  1114. Oklahoma
  1115. capital
  1116. Oklahoma City
  1117. Kansas
  1118. capital
  1119. Topeka
  1120. Nebraska
  1121. capital
  1122. Lincoln
  1123. South Dakota
  1124. capital
  1125. Pierre
  1126. North Dakota
  1127. capital
  1128. Bismarck
  1129. Minnesota
  1130. capital
  1131. St. Paul
  1132. capital
  1133. Des Moines
  1134. Missouri
  1135. capital
  1136. Jefferson City
  1137. Arkansas
  1138. capital
  1139. Little Rock
  1140. Louisiana
  1141. capital
  1142. Baton Rouge
  1143. Wisconsin
  1144. capital
  1145. Madison
  1146. Illinois
  1147. capital
  1148. Springfield
  1149. Kentucky
  1150. capital
  1151. Frankfort
  1152. Indiana
  1153. capital
  1154. Indianapolis
  1155. Tennessee
  1156. capital
  1157. Nashville
  1158. Mississippi
  1159. capital
  1160. Jackson
  1161. Alabama
  1162. capital
  1163. Montgomery
  1164. Georgia
  1165. capital
  1166. Atlanta
  1167. Florida
  1168. capital
  1169. Tallahassee
  1170. North Carolina
  1171. capital
  1172. Raleigh
  1173. South Carolina
  1174. capital
  1175. Columbia
  1176. capital
  1177. Columbus
  1178. Pennsylvania
  1179. capital
  1180. Harrisburg
  1181. West Virginia
  1182. capital
  1183. Charleston
  1184. Virginia
  1185. capital
  1186. Richmond
  1187. Maryland
  1188. capital
  1189. Annapolis
  1190. Delaware
  1191. capital
  1192. Dover
  1193. New York
  1194. capital
  1195. Albany
  1196. New Jersey
  1197. capital
  1198. Trenton
  1199. Vermont
  1200. capital
  1201. Montpelier
  1202. New Hampshire
  1203. capital
  1204. Concord
  1205. Maine
  1206. &HnH}
  1207. capital
  1208. Augusta
  1209. Massachusetts
  1210. H4JBJ
  1211. capital
  1212. Boston
  1213. Connecticut
  1214. capital
  1215. Hartford
  1216. Rhode Island
  1217. capital
  1218. Providence
  1219. Alaska
  1220. capital
  1221. Juneau
  1222. Hawaii
  1223. capital
  1224. Honolulu
  1225. 0-(-*
  1226. H.@.*
  1227. `/X/*
  1228. Michigan
  1229. capital
  1230. Lansing
  1231. <141*
  1232. state/capital display
  1233. capital
  1234. state
  1235. updateDisplay
  1236. message 
  1237. sent 
  1238. Hthe map
  1239. notifyBefore updateDisplay stateName,capital
  1240. state
  1241. capital
  1242. State
  1243. Capital
  1244. author
  1245. updateDisplay
  1246. Often in a CBT application, you want to give the subject a chance to study. This example highlights objects as the mouse passes over them, and puts the name of the highlighted object into a field. Note that groups of objects within the main group (such as the Hawaiian islands in the lower-left), highlight as a single unit. 
  1247. Note also that only named objects and groups highlight. The object representing the Great Lakes in the upper-right part of the map is not named.
  1248. ASYM_BeenHere
  1249. T6N8I9
  1250. Move your mouse cursor over the map to the right.
  1251. The state under the mouse pointer highlights, and the name of that state and its capital city appear in the fields below the map.
  1252. Slider
  1253. label
  1254. ASYM_BeenHere
  1255. SliderG
  1256. A slider is useful when you need a response from your subject that falls within a range. The slider widget sends the following messages:
  1257. startSliderMove:        sent when the user first clicks on the thumb
  1258. sliderMove:        sent constantly as the slider is being dragged
  1259. endSliderMove:        sent when the slider stops moving.
  1260. Each of these messages includes the current position of the slider thumb as its parameter. Use the property browser to set the range and scale.1
  1261. The slider sends the message endSliderMove when its thumb is set to a new position. 
  1262. This message is handled by the group that displays the fish.
  1263. (Degrees Fahrenheit)
  1264. slider
  1265. 0    >    S
  1266. mySliderMin
  1267. mySliderMax
  1268. mysliderPos
  1269. myNumTics
  1270. scaledSlider
  1271. tbk_wid_name
  1272. numTics
  1273. tallTicSpacing
  1274. sliderMin
  1275. sliderMax
  1276. sliderPos
  1277. tbk_wid_props
  1278. tbk_wid_values
  1279. myTallTicSpacing
  1280. thumb
  1281. hSliderThumb
  1282. txClassName
  1283. button id 103 of page id 15
  1284. glide
  1285. width
  1286. false
  1287. hilight
  1288. myTrackPos
  1289. Shuttle
  1290. helptext
  1291. Button
  1292. 60.566666666666673
  1293. 700333333333333344
  1294. 80.50000000000001e-014
  1295. 90066666666666669
  1296. 10033333333333336
  1297. 800.0000000000001
  1298. 10000
  1299. Select the proper temperature for tropical aquarium.
  1300. fishy
  1301. ,"JU"
  1302. ,"JK"
  1303. Too hot!
  1304. problem
  1305. health
  1306. Too cold!
  1307. Just right.
  1308. endSliderMove
  1309. jmyhealth
  1310. sickfish
  1311. health
  1312. jmyhealth
  1313. health
  1314. notifyBefore endSliderMove sliderPos
  1315.      >= 75 
  1316.  <=85
  1317. ohealth 
  1318. "good"
  1319. "poor"
  1320. M < 75
  1321. "Too cold!" 
  1322. "problem" 
  1323. { > 85
  1324. +hot!" 
  1325. "Just 
  1326. value
  1327. "fish" 
  1328. "sickfish" 
  1329. myhealth 
  1330. sickfish
  1331. problem
  1332. Too cold!t.
  1333. Initialize
  1334. fishy
  1335. sliderPos
  1336. health
  1337. slider
  1338. initialize
  1339. initialize
  1340. buttonClick
  1341. initialize
  1342. sliderPos 
  1343. health 
  1344. "fishy" 
  1345. buttonClick
  1346. --notifyBefore 
  1347. Initialize
  1348. endSliderMove
  1349. sliderMove
  1350. startSliderMove
  1351. Timer
  1352. label
  1353. ASYM_BeenHere
  1354. Timer
  1355. Use this timer widget when you want to limit the amount of time the subject has to answer questions or view material. You can customize the total amount of time on the clock, as well as the subject's time limit. 
  1356. For example, the script in the Initialize button sets the timer's total time to 60 seconds, and the time limit to 45 seconds. You can specify hours and minutes as well. Use the Property Browser to specify options.
  1357. When time is up, the timer sends the message endTime.{
  1358. A notify handler in the Initialize button starts the timer running when the page is entered. 
  1359. When time is up, the timer sends the endTime message, which in this example is handled by the Initialize button.
  1360. timer
  1361. QuizTimer
  1362. tbk_wid_name
  1363. totalTime
  1364. timeLimit
  1365. tbk_wid_props
  1366. tbk_wid_values
  1367. mytotalTime
  1368. totaltimeLimit
  1369. curTime
  1370. sweep
  1371. quarter
  1372. threequarters
  1373. 45505
  1374. timeFormat
  1375. (Seconds)
  1376. Initialize
  1377. timeLimit
  1378. timer
  1379. timeLimit
  1380. startTime
  1381. totalTime
  1382. totalTime
  1383. initialize
  1384. initialize
  1385. buttonClick
  1386. initialize
  1387. enterPage
  1388. Time's up.
  1389. endTime
  1390. initialize
  1391. totalTime 
  1392. "timer" 
  1393. timeLimit 
  1394. startTime 
  1395. buttonClick
  1396. notifyBefore 
  1397. endTime
  1398. 's up."
  1399. Initialize
  1400. endtime
  1401. enterpage
  1402. leavepage
  1403. buttonstilldown
  1404. F    4    4    K
  1405. *ClassTbl*
  1406. *ClassEntry*
  1407. *PTABLE*
  1408. *WINDOWSEG*
  1409. *ICONRESTAB*
  1410. *ICONRESSEG*
  1411. *ICONRES*
  1412. Background
  1413. *OBJTABLE*
  1414. *IDTABLE*
  1415. *NAMETAB*
  1416. Rectangle
  1417. Ellipse
  1418. RoundedRectangle
  1419. Polygon
  1420. IrregularPolygon
  1421. AngledLine
  1422. Curve
  1423. PaintObject
  1424. Picture
  1425. Hotword
  1426. *RHOTWORD*
  1427. Group
  1428. Stage
  1429. Button
  1430. Viewer
  1431. ComboBox
  1432. Field
  1433. RecordField
  1434. *TbxBase*
  1435.     &    eld
  1436.     4    bxBase*
  1437. bxBase*
  1438. Showing a web page
  1439. label
  1440. Showing a web page
  1441. http://www.asymetrix.com
  1442. internetBrowser
  1443. C:\PROGRA~1\NETSCAPE\NAVIGA~1\PROGRAM\NETSCAPE.EXE
  1444. internetBrowser
  1445. C:\PROGRA~1\NETSCAPE\NAVIGA~1\PROGRAM\NETSCAPE.EXE
  1446. http://www.asymetrix.com
  1447. http://www.asymetrix.com
  1448. http://www.boeing.com
  1449. http://www.ibm.com
  1450. http://www.nasa.com
  1451. http://www.northrup.com
  1452. http://www.nothrup.com
  1453. http://www.sony.com
  1454. Jump to URL combobox
  1455. Jump to URL field
  1456. These widgets will attempt to communicate via DDE with Netscape.  If the communication fails, the widgets will read the registration database to locate any browsers associated with the *.htm extension.  If a browser is found, it will be launched with the desired URL as an argument..
  1457. The combobox will store URLs previously entered to allow easy retrieval.
  1458. $ &0G
  1459. $@&0G
  1460. Object Effect
  1461. label
  1462. Object Effect
  1463. Single
  1464. tbk_wid_name
  1465. single_object_effect
  1466. Single Object
  1467. Multiple
  1468. tbk_wid_name
  1469. multiple_object_effect
  1470. Multiple Objects
  1471. &Button
  1472. This effect works because of a subtle difference between ToolBook's sysLockScreen property and the Windows API function LockWindowUpdate.
  1473. You can use these widgets as is for random effects, or alter the scripts to hardwire them to your favorite objects.
  1474. ASYM_BeenHere
  1475. Applies page navigation effects to individual objects.
  1476. Slow-motion
  1477. label
  1478. ASYM_BeenHere
  1479. Slow-motion
  1480. Putting this script in a checkbox gives the user the option of slowing ToolBook down by a particular factor set in the script. This script is useful if you need to let the user slow down a process, such as an animation. 
  1481. notifyBefore idle
  1482.     if my checked
  1483.         set lt to lastTime of self
  1484.             set newTime to timeGetTime()
  1485.         -- change this number to change degree of slow-down
  1486.         until newTime - lt >= 100 
  1487.         set lastTime of self to newTime
  1488.     end if
  1489. end idle
  1490. notifyBefore enterPage
  1491.     send init
  1492. end enterPage
  1493. notifyBefore leavePage
  1494.     unlinkDLL "mmsystem"
  1495. end leavePage
  1496. notifyAfter make
  1497.     if target is self
  1498.         send init
  1499.     end if
  1500. end make
  1501. to handle init
  1502.     linkDLL "mmsystem"
  1503.         DWORD timeGetTime()
  1504.     end linkDLL
  1505.     set lastTime of self to timeGetTime()
  1506. end init
  1507. w,    #?
  1508. disablePage
  1509. level
  1510. page of this
  1511. enterPage
  1512. w,    #?
  1513. go to
  1514. level
  1515. page of this
  1516. buttonClick
  1517. prop_level
  1518. invalid level for widget:
  1519. background, book
  1520. must be "background" or "book"
  1521. level
  1522. prop_level
  1523. level
  1524. First
  1525. must be "Next", "Previous", "First", or "Last"
  1526. invalid direction for widget:
  1527. Next,Previous,First,Last
  1528. disablePage
  1529. direction
  1530. direction
  1531. prop_disablePage
  1532. invalid disablePage:
  1533. First, last
  1534. must be "First" or "Last"
  1535. disablePage
  1536. prop_disablePage
  1537. disablePage
  1538. tabPressed
  1539. tabname
  1540. J,tabMode
  1541. obtype
  1542. tabNum
  1543. buttonClick
  1544. etabLimit
  1545. Cannot set tab
  1546. tabPressed
  1547. myTabMode
  1548. tabMode
  1549. tabLimit
  1550. myTabMode
  1551. tabMode
  1552. myTabHeight
  1553. tabHeight
  1554. myTabHeight
  1555. tabHeight
  1556. arrangeTabs
  1557. myTabSpace
  1558. tabSpace
  1559. myTabSpace
  1560. tabSpace
  1561. w,    #?
  1562. manual
  1563. false
  1564. myNumTabs
  1565. etabLimit
  1566. Can only have
  1567. Must have at least 1 tab
  1568. arrangeTabs
  1569. numTabs
  1570. myNumtabs
  1571. numTabs
  1572. manual
  1573. tabRef
  1574. tabLabel
  1575. tabHighlight
  1576. tabHeight
  1577. arrangeTabs
  1578. myNumTabs
  1579. obtype
  1580. highlight
  1581. myTabHeight
  1582. sized
  1583. w,    #>
  1584. myTabMode
  1585. tname
  1586. myNumTabs
  1587. myTabSpace
  1588. anchor
  1589. arrangeTabs
  1590. l7parseFileName
  1591. keyChar
  1592. .'+    +F
  1593. getCurrentDrive
  1594. fileExists
  1595. FALSE
  1596. setCurrentDirectory
  1597. acceptFile
  1598. drive
  1599. vgetCurrentDirectory
  1600. seperatePath
  1601. selectFile
  1602. uncheckLinks
  1603. setCurrentDrive
  1604. default
  1605. update
  1606. parseFileName
  1607. vgetCurrentDirectory
  1608. setCurrentDirectory
  1609. jupdateFileInfo
  1610. zeupdateDirectoryInfo
  1611. update
  1612. l7parseFileName
  1613. selectFile
  1614. uncheckLinks
  1615. getFileAttributes
  1616. seperatePath
  1617. tb40dos.dll
  1618. fileExists
  1619. getFileAttributes
  1620. getCurrentDrive
  1621. getCurrentDirectory
  1622. setCurrentDirectory
  1623. setCurrentDrive
  1624. checkLinks
  1625. tb40dos.dll
  1626. uncheckLinks
  1627. acceptFile
  1628. updateFileInfo
  1629. updateDirectoryInfo
  1630. resetObj
  1631. wrkday
  1632. daysInMonth
  1633. field
  1634. 9lresetObj
  1635. 8weekDay
  1636. counter
  1637. :lresetObj
  1638. buildcal
  1639. calMonth
  1640. calYear
  1641. displayDate
  1642. 034025036146
  1643. isLeapYear
  1644. 144025036146
  1645. leapyear
  1646. weekDay
  1647. 31,28,31,30,31,30,31,31,30,31,30,31
  1648. leapyear
  1649. daysInMonth
  1650. 0,31,59,90,120,151,181,212,243,273,304,334
  1651. m,d,y
  1652. isLeapYear
  1653. Sunday,Monday,Tuesday,Wednesday,Thursday,Friday,Saturday
  1654. m/d/y
  1655. dayOfWeek
  1656. ,"JdY
  1657. FALSE
  1658. isLeapYear
  1659. enterPage
  1660. today
  1661. V,    #>
  1662. mouseLoc
  1663. marker
  1664. count
  1665. lineHeight
  1666. targetLine
  1667. lineList
  1668. tlines
  1669. llineYloc
  1670. tline
  1671. IvertLoc
  1672. buttonDown
  1673. lineHeight
  1674. sizeSample
  1675. lineHeight
  1676. lineYloc
  1677. marker
  1678. lineHeight
  1679. adjustSize
  1680. enterPage
  1681. KERNEL
  1682. SHELL
  1683. GlobalAlloc
  1684. GlobalLock
  1685. GlobalUnlock
  1686. GlobalFree
  1687. filesDropped
  1688. s_WM_DROPFILES
  1689. DragAcceptFiles
  1690. DragAcceptFiles
  1691. DragQueryFile
  1692. DragQueryCount
  1693. DragQueryFile
  1694. DragQueryValue
  1695. .'+    +F
  1696. ,&H.&
  1697. .'+    +F
  1698. GlobalAlloc
  1699. DragQueryCount
  1700. filesDropped
  1701. GlobalFree
  1702. GlobalLock
  1703. DragQueryValue
  1704. GlobalUnLock
  1705. dropFiles
  1706. l_count
  1707. 06cleanUp
  1708. filesDropped
  1709. DragAcceptFiles
  1710. reader
  1711. KERNEL
  1712. SHELL
  1713. s_WM_DROPFILES
  1714. leavepage
  1715. cleanUp
  1716. (=FullPie
  1717. PtStart
  1718. false
  1719. StartAngle
  1720. defValues
  1721. prevPie
  1722. vVertices
  1723. zeroAngle
  1724. defValues
  1725. newVertices
  1726. PlotValues
  1727. defValues
  1728. plotValues
  1729. plotValues
  1730. risNumber
  1731. zeroAngle
  1732. <myPlotOrigin
  1733. PlotOrigin
  1734. <myPlotOrigin
  1735. plotOrigin
  1736. ,&H.&
  1737. risNumber
  1738. eEmyPlotColors
  1739. PlotColors
  1740. dEmyPlotColors
  1741. plotColors
  1742. isNumber
  1743. (=FullPie
  1744. PtStart
  1745. false
  1746. explodeBy
  1747. StartAngle
  1748. defValues
  1749. prevPie
  1750. vVertices
  1751. explodeBy
  1752. zeroAngle
  1753. defValues
  1754. newVertices
  1755. PlotValues
  1756. defValues
  1757. plotValues
  1758. result
  1759. explodeBy
  1760. zeroAngle
  1761. PlotOrigin
  1762. plotValues
  1763. risNumber
  1764. explodeBy
  1765. zeroAngle
  1766. PlotOrigin
  1767. ,&H.&
  1768. risNumber
  1769. eEmyPlotColors
  1770. PlotColors
  1771. dEmyPlotColors
  1772. plotColors
  1773. isNumber
  1774. author
  1775. toggleStatus
  1776. <+V!!
  1777. statusbox
  1778. reader
  1779. <+V!8
  1780. statusbox
  1781. author
  1782. .'+    +F
  1783. theStore
  1784. decimal
  1785. default
  1786. svNumFormat
  1787. memory
  1788. clear_all
  1789. openWindow
  1790. number
  1791. display
  1792. last_key
  1793. display
  1794. w,    "@
  1795. w,    "@
  1796. theStore
  1797. savekey
  1798. number
  1799. ?strUnderflow
  1800. display
  1801. strNoZeroDivide
  1802. strOverflow
  1803. clear_all
  1804. last_key
  1805. calculate
  1806. .',    "
  1807. calculate
  1808. LBdisplay
  1809. 0123456789+-*/=
  1810. keyChar
  1811. FALSE
  1812. posNum
  1813. svNumFormat
  1814. strDisplayNumber
  1815. Can't divide by 0.
  1816. strNoZeroDivide
  1817. Overflow
  1818. strOverflow
  1819. Underflow
  1820. strUnderflow
  1821. kGetValue
  1822. DialogCallback
  1823. GetValue
  1824. SetValue
  1825. GetnListBoxSelection
  1826. GetControlText
  1827. SetControlText
  1828. SetnListBoxSelection
  1829. endTBKDialog
  1830. button ok
  1831. vSetValue
  1832. FALSE
  1833. EDIT message,E3604,
  1834. BUTtoN ok,B1,TRUE
  1835. BUTtoN cancel,B3606,FALSE
  1836. listBox answers
  1837. 524480,6,25,25,186,74,,,Edit True or False,8,MS Sans Serif,,2,3,130,55,3607,1342177287,128,Answers:,0,,5,32,125,7,3603,1342177280,130,Text,0,answers,5,13,49,21,3596,1352728577,131,,0,message,5,42,124,11,3604,1350631552,129,,0,ok,136,7,44,12,1,1342242817,128,OK,0,cancel,136,22,44,12,3606,1342242816,128,Cancel,0
  1838. tb40dlg.dll
  1839. <ManswerMessage
  1840. vADialogCallback
  1841. =ManswerMessage
  1842. 2    s_answerMessages
  1843. ,G3607,Answers:
  1844. ,S3603,Message to Send When Chosen:
  1845. LISTBOX answers,L3596,TRUE
  1846. customEdit
  1847. SetnListBoxSelection
  1848. listBox answers
  1849. TBKDialogInit
  1850. LISTBOX answers
  1851. GetnListBoxSelection
  1852. SetControlText
  1853. Button ok
  1854. GetControlText
  1855. endTBKDialog
  1856. EDIT message
  1857. listBox answers
  1858. Button cancel
  1859. edit message
  1860. 2    s_answerMessages
  1861. TBKDialogCommand
  1862. reader
  1863. customEdit
  1864. reader
  1865. enterPage
  1866. author
  1867. kGetValue
  1868. DialogCallback
  1869. GetValue
  1870. SetValue
  1871. GetnListBoxSelection
  1872. GetControlText
  1873. SetControlText
  1874. SetnListBoxSelection
  1875. endTBKDialog
  1876. button ok
  1877. vSetValue
  1878. FALSE
  1879. EDIT message,E3604,
  1880. BUTtoN ok,B1,TRUE
  1881. BUTtoN cancel,B3606,FALSE
  1882. listBox answers
  1883. 524480,6,25,25,186,74,,,Edit True or False,8,MS Sans Serif,,2,3,130,55,3607,1342177287,128,Answers:,0,,5,32,125,7,3603,1342177280,130,Text,0,answers,5,13,49,21,3596,1352728577,131,,0,message,5,42,124,11,3604,1350631552,129,,0,ok,136,7,44,12,1,1342242817,128,OK,0,cancel,136,22,44,12,3606,1342242816,128,Cancel,0
  1884. tb40dlg.dll
  1885. <ManswerMessage
  1886. vADialogCallback
  1887. =ManswerMessage
  1888. 2    s_answerMessages
  1889. ,G3607,Answers:
  1890. ,S3603,Message to Send When Chosen:
  1891. LISTBOX answers,L3596,TRUE
  1892. customEdit
  1893. SetnListBoxSelection
  1894. listBox answers
  1895. TBKDialogInit
  1896. LISTBOX answers
  1897. GetnListBoxSelection
  1898. SetControlText
  1899. Button ok
  1900. GetControlText
  1901. endTBKDialog
  1902. EDIT message
  1903. listBox answers
  1904. Button cancel
  1905. edit message
  1906. 2    s_answerMessages
  1907. TBKDialogCommand
  1908. reader
  1909. customEdit
  1910. reader
  1911. enterPage
  1912. author
  1913. NON-ALPHA
  1914. ,toggleInvert
  1915. ALPHA
  1916. txClassName
  1917. input
  1918. initialButton
  1919. initialButtonClass
  1920. buttonDown
  1921. invertedButton
  1922. NON-ALPHA
  1923. invertedButtonClass
  1924. ALPHA
  1925. initialButton
  1926. initialButtonClass
  1927. label
  1928. buttonUp
  1929. invertedButton
  1930. .isChild
  1931. NON-ALPHA
  1932. ,toggleInvert
  1933. invertedButtonClass
  1934. ALPHA
  1935. txClassName
  1936. label
  1937. buttonStillDown
  1938. buttonDoubleClick
  1939. FALSE
  1940. Enter
  1941. labelText
  1942. Shift
  1943. Caps Lock
  1944. input
  1945. buttonClick
  1946. input
  1947. enterPage
  1948. 1,#!"
  1949. invertedButton
  1950. NON-ALPHA
  1951. invertedButtonClass
  1952. ALPHA
  1953. label
  1954. toggleInvert
  1955. FALSE
  1956. group
  1957. isChild
  1958. label
  1959. field
  1960. ALPHA
  1961. txClassName
  1962. labelText
  1963. b;origLoc
  1964. newloc
  1965. getsystemmetrics
  1966. getsystemmetrics
  1967. checkObject
  1968. dropTarget
  1969. buttondown
  1970. labelPosition
  1971. b;origLoc
  1972. initQuiz
  1973. c;origLoc
  1974. moved
  1975. c;origLoc
  1976. label
  1977. topLeft
  1978. topRight
  1979. c;origLoc
  1980. point
  1981. bottomLine
  1982. sized
  1983. b;origLoc
  1984. newloc
  1985. getsystemmetrics
  1986. getsystemmetrics
  1987. checkObject
  1988. dropTarget
  1989. buttondown
  1990. labelPosition
  1991. b;origLoc
  1992. initQuiz
  1993. c;origLoc
  1994. moved
  1995. c;origLoc
  1996. label
  1997. topLeft
  1998. topRight
  1999. c;origLoc
  2000. point
  2001. bottomLine
  2002. sized
  2003. b;origLoc
  2004. newloc
  2005. getsystemmetrics
  2006. getsystemmetrics
  2007. checkObject
  2008. dropTarget
  2009. buttondown
  2010. labelPosition
  2011. b;origLoc
  2012. initQuiz
  2013. c;origLoc
  2014. moved
  2015. c;origLoc
  2016. label
  2017. topLeft
  2018. topRight
  2019. c;origLoc
  2020. point
  2021. bottomLine
  2022. sized
  2023. JEBEBE
  2024. DialogCallback
  2025. SetValue
  2026. GetValue
  2027. AddListBoxItem
  2028. DeletenListBoxItem
  2029. EnableControl
  2030. GetControlText
  2031. GetDialogFocus
  2032. GetListBoxItems
  2033. GetListBoxSelection
  2034. GetnListBoxSelection
  2035. SetControlText
  2036. SetDialogFocus
  2037. SetListBoxItems
  2038. SetnListBoxSelection
  2039. endTBKDialog
  2040. vSetValue
  2041. listBox answers
  2042. 524480,9,25,25,228,104,,,Edit Multiple Choice,8,MS Sans Serif,,2,4,171,80,3597,1342177287,128,Answers:,0,,5,59,125,7,3603,1342177280,130,Text,0,answers,5,17,124,39,3596,1352728577,131,,0,add,133,17,37,12,3600,1342242816,128,&Add,0,delete,133,31,37,12,3601,1342242816,128,&Delete,0,edit,133,45,37,12,3602,1342242816,128,&Edit...,0,message,5,69,124,11,3604,1350631552,129,,0,ok,178,7,44,12,1,1342242817,128,OK,0,cancel,178,22,44,12,3606,1342242816,128,Cancel,0
  2043. tb40dlg.dll
  2044. <ManswerMessage
  2045. ,G3597,Answers:
  2046. ,S3603,Message to Send When Chosen:
  2047. LISTBOX answers,L3596,
  2048. BUTtoN add,B3600,NODISMISS
  2049. BUTtoN delete,B3601,NODISMISS
  2050. BUTtoN edit,B3602,NODISMISS
  2051. EDIT message,E3604,
  2052. BUTtoN ok,B1,TRUE
  2053. BUTtoN cancel,B3606,FALSE
  2054. vADialogCallback
  2055. 2    s_answerMessages
  2056. customEdit
  2057. SetControlText
  2058. listbox answers
  2059. SetnListBoxSelection
  2060. listBox answers
  2061. button delete
  2062. edit message
  2063. jGetListBoxSelection
  2064. AEnableControl
  2065. GetListBoxItems
  2066. TBKDialogInit
  2067. 1+5!7
  2068. V,    #>
  2069. .&,    #>
  2070. .&,    #>
  2071. .&,    #>
  2072. listBox answers
  2073. QOtbk_wid_props
  2074. invert of target = TRUE
  2075. LISTBOX answers
  2076. Button add
  2077. Button ok
  2078. button
  2079. lGetDialogFocus
  2080. to handle buttonDown
  2081. Button edit
  2082. edit message
  2083. listbox answers
  2084. to handle buttonUp
  2085. Answer Caption:
  2086. 4DeletenListBoxItem
  2087. newAnswer
  2088. endTBKDialog
  2089. editWidget
  2090. GetControlText
  2091. =ManswerMessage
  2092. AEnableControl
  2093. send (answerMessage of target) to target
  2094. GetListBoxItems
  2095. to set editWidget
  2096. send customEdit to item 1 of my objects
  2097. Cancel
  2098. wAddListBoxItem
  2099. gobjLayer
  2100. GetnListBoxSelection
  2101. SetControlText
  2102. GvSetDialogFocus
  2103. BUTtoN cancel
  2104. button delete
  2105. SetnListBoxSelection
  2106. Multiple Choice
  2107. Answer &
  2108. answer
  2109. Button delete
  2110. EDIT message
  2111. SetListBoxItems
  2112. jGetListBoxSelection
  2113. sptbk_wid_values
  2114. tbk_wid_name
  2115. my invert = FALSE
  2116. 2    s_answerMessages
  2117. custom,editWidget
  2118. TBKDialogCommand
  2119. page,background
  2120. objLayer
  2121. reader
  2122. customEdit
  2123. reader
  2124. enterPage
  2125. author
  2126. %Aag'n
  2127. pointerObj
  2128. ={rotation
  2129. pointerObj
  2130. angle
  2131. dialMax
  2132. startAngle
  2133. endAngle
  2134. /dialMax
  2135. dialMin
  2136. QendAngle
  2137. startAngle
  2138. 1-dialMin
  2139. dialPos
  2140. pointerObj
  2141. angle
  2142. startAngle
  2143. dialMax
  2144. endAngle
  2145. /dialMax
  2146. dialMin
  2147. QendAngle
  2148. startAngle
  2149. coords
  2150. 1-dialMin
  2151. >{rotation
  2152. dialPos
  2153. angleFromPoint
  2154. pointerObj
  2155. endDialMove
  2156. angle
  2157. >9dialPos
  2158. |angleFromPoint
  2159. startAngle
  2160. dialMax
  2161. endAngle
  2162. /dialMax
  2163. 9adialMove
  2164. >{rotation
  2165. dialMin
  2166. QendAngle
  2167. startAngle
  2168. coords
  2169. 1-dialMin
  2170. Field
  2171. buttondown
  2172. .',    "
  2173. C333333
  2174. C333333
  2175. centerPosition
  2176. curField
  2177. startAngle
  2178. dialMax
  2179. endAngle
  2180. /dialMax
  2181. mtallTicSpacing
  2182. myNumTics
  2183. dialMin
  2184. QendAngle
  2185. startAngle
  2186. coords
  2187. 1-dialMin
  2188. numTics
  2189. centerPosition
  2190. LnumTics
  2191. mydialMax
  2192. LnumTics
  2193. dialMax
  2194. mydialMin
  2195. LnumTics
  2196. LnumTics
  2197. dialmin
  2198. mydialMax
  2199. dialMax
  2200. mydialMin
  2201. dialMin
  2202. myTallTicSpacing
  2203. Lnumtics
  2204. Lnumtics
  2205. tallTicSpacing
  2206. .myStartAngle
  2207. Lnumtics
  2208. Lnumtics
  2209. startAngle
  2210. Lnumtics
  2211. myendAngle
  2212. Lnumtics
  2213. endAngle
  2214. myNumTics
  2215. numTics
  2216. .myStartAngle
  2217. startAngle
  2218. myendAngle
  2219. endAngle
  2220. myTallTicSpacing
  2221. tallTicSpacing
  2222. Q+struct
  2223. objlist
  2224. group
  2225. myRotation
  2226. structInfo
  2227. myRotation
  2228. curObjType
  2229. arc,pie
  2230. line,curve,angledline,polygon,irregularPolygon,pie,arc
  2231. storePolar
  2232. myRotation
  2233. rotation
  2234. false
  2235. propsStored
  2236. group
  2237. uprops
  2238. myRotation
  2239. objlist
  2240. structInfo
  2241. maliable
  2242. Q+struct
  2243. storePolar
  2244. structInfo
  2245. curObjType
  2246. struct
  2247. P+struct
  2248. arc,pie
  2249. rotation
  2250. pointerObj
  2251. Lnumtics
  2252. structInfo
  2253. Q+struct
  2254. Lnumtics
  2255. sized
  2256. dialMove
  2257. enddialMove
  2258. Money
  2259. label
  2260. Money
  2261. This field formats its value to a standard "spread-sheet" look..c
  2262. The widget handles the leavefield  message to reformat itself.
  2263. Money
  2264. Money
  2265. tbk_wid_name
  2266. $ 234.00
  2267. ASYM_BeenHere
  2268. True and False
  2269. label
  2270. True and False
  2271. T/F Buttons
  2272. buttonDown
  2273. <ManswerMessage
  2274. buttonUp
  2275. editWidget
  2276. You chose
  2277. answerTrue
  2278. You chose
  2279. answerFalse
  2280. --    Tim Pearson, Asymetrix    1/94
  2281. = FALSE
  2282. >= TRUE
  2283. (answerMessage 
  2284. editWidget 
  2285. customEdit 
  2286. the handlers below 
  2287. suit your needs    --
  2288. answerTrue
  2289. "You chose" && 
  2290. answerFalse
  2291. tbk_wid_name
  2292. T/F Buttons
  2293. tbk_wid_props
  2294. editWidget
  2295. tbk_wid_values
  2296. custom,editWidget
  2297. widgetParent
  2298. answerMessage
  2299. answerTrue
  2300. &TRUE
  2301. false
  2302. answerMessage
  2303. answerFalse
  2304. &FALSE
  2305. T/F Radio Buttons
  2306. <ManswerMessage
  2307. buttonClick
  2308. editWidget
  2309. You chose
  2310. answerTrue
  2311. You chose
  2312. answerFalse
  2313. --    Tim Pearson, Asymetrix    1/94
  2314. buttonClick
  2315. (answerMessage 
  2316. editWidget 
  2317. customEdit 
  2318. the handlers below 
  2319. suit your needs    --
  2320. answerTrue
  2321. "You chose" && 
  2322. answerFalse
  2323. tbk_wid_name
  2324. T/F Radio Buttons
  2325. tbk_wid_props
  2326. editWidget
  2327. tbk_wid_values
  2328. custom,editWidget
  2329. widgetParent
  2330. answerMessage
  2331. answerTrue
  2332. &TRUE
  2333. false
  2334. answerMessage
  2335. answerFalse
  2336. &FALSE
  2337. customEdit
  2338. reader
  2339. enterPage
  2340. author
  2341. These widgets can be set for true and false questions.
  2342. These widgets send a user-defined message. At Reader level you can right-click the group, then click the Custom-edit button on the right-click tool bar to determine which button sends what message. 
  2343. There is also a to set handler that will display the same editing dialog box. You need to set the editWidget property of the group to any value. For example, select the group, then type in the Command window: set editWidget of selection to 1. This property can also be set from the object properties list given by MTB40.sbk at Author level; just double-click on the editWidget line.
  2344. You can place the message handlers in the group script or edit the ones already there.
  2345. Most of the work is done in a script in an invisible field. You can get to the script of this field by selecting the appropriate group and executing the following command in the Command window: edit script of item 1 of objects of selection.n....pt of item 1 of objects of selection.
  2346. ASYM_BeenHere
  2347. Multiple Choice
  2348. label
  2349. Multiple Choice
  2350. CBT Buttons
  2351. buttonDown
  2352. <ManswerMessage
  2353. buttonUp
  2354. editWidget
  2355. You chose
  2356. answer1
  2357. You chose
  2358. answer2
  2359. You chose
  2360. answer3
  2361. You chose
  2362. answer4
  2363. --    Tim Pearson, Asymetrix    1/94
  2364. = FALSE
  2365. >= TRUE
  2366. (answerMessage 
  2367. editWidget 
  2368. customEdit 
  2369. the handlers below 
  2370. suit your needs    --
  2371. answer1
  2372. "You chose" && 
  2373. answer2
  2374. answer3
  2375. answer4
  2376. tbk_wid_name
  2377. CBT Buttons
  2378. tbk_wid_props
  2379. editWidget
  2380. tbk_wid_values
  2381. custom,editWidget
  2382. widgetParent
  2383. answerMessage
  2384. answer1
  2385. Answer &1
  2386. answerMessage
  2387. answer2
  2388. Answer &2
  2389. answerMessage
  2390. answer3
  2391. Answer &3
  2392. answerMessage
  2393. answer4
  2394. Answer &4
  2395. CBT Radio Buttons
  2396. <ManswerMessage
  2397. buttonClick
  2398. editWidget
  2399. You chose
  2400. answer1
  2401. You chose
  2402. answer2
  2403. You chose
  2404. answer3
  2405. You chose
  2406. answer4
  2407. --    Tim Pearson, Asymetrix    1/94
  2408. buttonClick
  2409. (answerMessage 
  2410. editWidget 
  2411. customEdit 
  2412. the handlers below 
  2413. suit your needs    --
  2414. answer1
  2415. "You chose" && 
  2416. answer2
  2417. answer3
  2418. answer4
  2419. tbk_wid_name
  2420. CBT Radio Buttons
  2421. tbk_wid_props
  2422. editWidget
  2423. tbk_wid_values
  2424. custom,editWidget
  2425. widgetParent
  2426. answerMessage
  2427. answer1
  2428. Answer &1
  2429. answerMessage
  2430. answer2
  2431. Answer &2
  2432. answerMessage
  2433. answer3
  2434. Answer &3
  2435. answerMessage
  2436. answer4
  2437. Answer &4
  2438. customEdit
  2439. reader
  2440. enterPage
  2441. author
  2442. You can set these widgets for multiple choice questions.
  2443. These widgets send a user-defined message. At Reader level you can right-click the group, then click the Custom-edit button on the right-click tool bar to determine which button sends what message and to edit the buttons' captions. 
  2444. There is also a to set handler that will display the same editing dialog box. You need to set the editWidget property of the group to any value. For example, select the group, then type in the Command window: set editWidget of selection to 1. This property can also be set from the object properties list given by MTB40.sbk at Author level; just double-click on the editWidget line.
  2445. You can place the message handlers in the group script or edit the ones already there.
  2446. Most of the work is done in a script in an invisible field. You can get to the script of this field by selecting the appropriate group and executing the following command in the Command window: edit script of item 1 of objects of selection.n...ipt of item 1 of objects of selection.
  2447. ASYM_BeenHere
  2448. Alpha Keyboard
  2449. label
  2450. Alpha Keyboard
  2451. alphabuttons
  2452. buttonPressed
  2453. Button id 20 of Page id 72
  2454. tbk_wid_name
  2455. alphabuttons
  2456. The group recognizes which button has been pressed.
  2457. Pressing a button causes the group to report to the user what button was pressed. The invert property of that button is set to true until the next button is pressed. When pasted into another book, the buttons are all reset and the group is prepared to work without any manual initialization.
  2458. ASYM_BeenHere
  2459. QWERTY Keyboard
  2460. label
  2461. ASYM_BeenHere
  2462. QWERTY Keyboard
  2463. A qwerty keyboard that returns the letter that is clicked. Click the button to show the large QWERTY keyboard. Clicking the buttons in the keyboard will display text in the field.
  2464. N.B. This widget has problems drawing itself in high resolution mode (1024 by 768 or greater) when using large fonts.
  2465. Clicking buttons in the key-board will display text in the field.
  2466. This widget has problems  in 1024 by 768 and large fonts.ts.onts.g large fonts.hen using large fonts..fonts. fonts.onts.ode (1024 by 768 or greater) when using large fonts.
  2467. QWERTY-Keyboard
  2468. QWERTY_Keyboard
  2469. tbk_wid_name
  2470. input
  2471. ALPHA
  2472. txClassName
  2473. ALPHA
  2474. txClassName
  2475. ALPHA
  2476. txClassName
  2477. ALPHA
  2478. txClassName
  2479. ALPHA
  2480. txClassName
  2481. ALPHA
  2482. txClassName
  2483. ALPHA
  2484. txClassName
  2485. ALPHA
  2486. txClassName
  2487. ALPHA
  2488. txClassName
  2489. ALPHA
  2490. txClassName
  2491. ALPHA
  2492. txClassName
  2493. ALPHA
  2494. txClassName
  2495. ALPHA
  2496. txClassName
  2497. ALPHA
  2498. txClassName
  2499. ALPHA
  2500. txClassName
  2501. ALPHA
  2502. txClassName
  2503. ALPHA
  2504. txClassName
  2505. ALPHA
  2506. txClassName
  2507. ALPHA
  2508. txClassName
  2509. ALPHA
  2510. txClassName
  2511. ALPHA
  2512. txClassName
  2513. ALPHA
  2514. txClassName
  2515. ALPHA
  2516. txClassName
  2517. ALPHA
  2518. txClassName
  2519. ALPHA
  2520. txClassName
  2521. ALPHA
  2522. txClassName
  2523. ALPHA
  2524. txClassName
  2525. ALPHA
  2526. txClassName
  2527. ALPHA
  2528. txClassName
  2529. ALPHA
  2530. txClassName
  2531. ALPHA
  2532. txClassName
  2533. ALPHA
  2534. txClassName
  2535. ALPHA
  2536. txClassName
  2537. ALPHA
  2538. txClassName
  2539. ALPHA
  2540. txClassName
  2541. ALPHA
  2542. txClassName
  2543. ALPHA
  2544. txClassName
  2545. ALPHA
  2546. txClassName
  2547. ALPHA
  2548. txClassName
  2549. ALPHA
  2550. txClassName
  2551. ALPHA
  2552. txClassName
  2553. ALPHA
  2554. txClassName
  2555. ALPHA
  2556. txClassName
  2557. ALPHA
  2558. txClassName
  2559. ALPHA
  2560. txClassName
  2561. ALPHA
  2562. txClassName
  2563. ALPHA
  2564. txClassName
  2565. ALPHA
  2566. txClassName
  2567. Enter
  2568. NON-ALPHA
  2569. txClassName
  2570. NON-ALPHA
  2571. txClassName
  2572. NON-ALPHA
  2573. txClassName
  2574. NON-ALPHA
  2575. txClassName
  2576. NON-ALPHA
  2577. txClassName
  2578. NON-ALPHA
  2579. txClassName
  2580. LW:WIW
  2581. Caps Lock
  2582. NON-ALPHA
  2583. txClassName
  2584. NON-ALPHA
  2585. txClassName
  2586. NON-ALPHA
  2587. txClassName
  2588. NON-ALPHA
  2589. txClassName
  2590. NON-ALPHA
  2591. txClassName
  2592. NON-ALPHA
  2593. txClassName
  2594. NON-ALPHA
  2595. txClassName
  2596. NON-ALPHA
  2597. txClassName
  2598. NON-ALPHA
  2599. txClassName
  2600. NON-ALPHA
  2601. txClassName
  2602. NON-ALPHA
  2603. txClassName
  2604. NON-ALPHA
  2605. txClassName
  2606. NON-ALPHA
  2607. txClassName
  2608. Shift
  2609. NON-ALPHA
  2610. txClassName
  2611. NON-ALPHA
  2612. txClassName
  2613. NON-ALPHA
  2614. txClassName
  2615. NON-ALPHA
  2616. txClassName
  2617. NON-ALPHA
  2618. txClassName
  2619. Shift
  2620. NON-ALPHA
  2621. txClassName
  2622. NON-ALPHA
  2623. txClassName
  2624. NON-ALPHA
  2625. txClassName
  2626. NON-ALPHA
  2627. txClassName
  2628. NON-ALPHA
  2629. txClassName
  2630. enterPage
  2631. Can't Touch This
  2632. label
  2633. Can't Touch This
  2634. Cant_Touch_This
  2635. 1,%!2
  2636. mouseEnter
  2637. --    Tim Pearson, Asymetrix    1/94
  2638. Z    INT        xOld, yOld, xMin, yMin, xMax, yMax, x, y
  2639. /= "0,0"
  2640.         x = 
  2641. x >= 0 
  2642. xTRUE
  2643.         y = 
  2644. y >= 0 
  2645. tbk_wid_name
  2646. Cant_Touch_This
  2647. Can't Touch This
  2648. Cant_Touch_This
  2649. enterPage
  2650. B"Cant_Touch_This" 
  2651. orig 
  2652. 3888,3532
  2653. ASYM_BeenHere
  2654. The descendant of a practical joke, this widget suggests some possibilities for using ToolBook to create interactive games.
  2655. Slow-motion
  2656. label
  2657. ASYM_BeenHere
  2658. Slow-motion
  2659. This widget is useful if you need to let the user slow down a process, such as an animation. 
  2660. The checkbox slows ToolBook down by a particular factor set in the script.  I
  2661. Slow-Motion
  2662. nplastTime
  2663. oplastTime
  2664. newTime
  2665. timeGetTime
  2666. enterPage
  2667. mmsystem
  2668. leavePage
  2669. oplastTime
  2670. timeGetTime
  2671. timeGetTime
  2672. mmsystem
  2673. notifyBefore 
  2674. lastTime 
  2675. newTime 
  2676. timeGetTime()
  2677. - lt >= 100
  2678.     unlinkDLL "mmsystem"
  2679. notifyAfter 
  2680.         DWORD 
  2681. lastTime
  2682. Slow-Mo
  2683. tbk_wid_name
  2684. Slow-Motion
  2685. Rainbow
  2686. ,&H.&
  2687. rainbowCount
  2688. buttonStillDown
  2689. notifyBefore Idle
  2690. 4rainbowCount
  2691. NULL)
  2692. k10 = 0)
  2693. sObj 
  2694. saveCol 
  2695. Ri + 1 
  2696.     sendnotifyBefore 
  2697. A Rainbow
  2698. leavePage
  2699. buttonStillDown
  2700. enterPage
  2701. label
  2702. A dial is useful when you need a response from your subject that falls within a range. The dial widget sends the following messages:
  2703. startDialMove:        sent when the user first clicks on the pointer
  2704. dialMove:        sent constantly as the pointer is dragged
  2705. endDialMove:        sent when the pointer is released
  2706. Each of these messages includes the current position of the pointer as its parameter. Use the property browser to set the range and scale.
  2707. The dial sends the DialMove message as you drag the pointer.
  2708. The field below the dial handles the dialMove message in a notify handler.
  2709. myStartAngle
  2710. myendAngle
  2711. myTallTicSpacing
  2712. tbk_wid_name
  2713. scaleDial
  2714. tbk_wid_props
  2715. dialPos
  2716. dialMin
  2717. dialMax
  2718. startAngle
  2719. endAngle
  2720. numTics
  2721. tallTicSpacing
  2722. tbk_wid_values
  2723. myNumTics
  2724. mydialMin
  2725. mydialMax
  2726. myRotation
  2727. struct
  2728. structInfo
  2729. 605ti
  2730. 70433333333333333
  2731. 805.6666666666667
  2732. 10099999999999999
  2733. 950t3
  2734. 80199999999999999
  2735. Display
  2736. dialMove
  2737. -- picks up message that dial sends
  2738. notifybefore dialMove pos
  2739. 59.79301442010294
  2740. Aa@!n
  2741. dialMove
  2742. enddialMove
  2743. dialMove
  2744. ASYM_BeenHere
  2745. Dial 2
  2746. Dragging objects into bins
  2747. label
  2748. Dragging objects into bins
  2749. This example shows an effective use of custom icons and OpenScript's drag and drop commands. When you start dragging an apple or orange, the object is hidden and the cursor is changed to the appropriate shape.
  2750. Drag the apples and oranges into their respective baskets...
  2751. oranges
  2752. targetType
  2753. orange
  2754. apples
  2755. targetType
  2756. apple
  2757. Apples
  2758. Oranges
  2759. New pile
  2760. pile o fruit
  2761. buttonclick
  2762. pile o fruit
  2763. enterPage
  2764. buttonclick
  2765. "pile o fruit" 
  2766. notifyBefore 
  2767. Restore pile
  2768. pile o fruit
  2769. buttondown
  2770. beginDrag
  2771. targetType
  2772. objectType
  2773. You missed the basket!
  2774. You're mixing apples and oranges!
  2775. endDrag
  2776.     drag 
  2777. >silently
  2778. beginDrag
  2779. endDrag destObj
  2780. targetType 
  2781. "You missed the basket!"
  2782. S <> objectType 
  2783. >'re mixing apples 
  2784. oranges!"
  2785. objectType
  2786. apple
  2787. objectType
  2788. orange
  2789. objectType
  2790. apple
  2791. objectType
  2792. orange
  2793. objectType
  2794. apple
  2795. objectType
  2796. orange
  2797. objectType
  2798. apple
  2799. objectType
  2800. orange
  2801. objectType
  2802. apple
  2803. objectType
  2804. orange
  2805. objectType
  2806. apple
  2807. objectType
  2808. orange
  2809. objectType
  2810. apple
  2811. objectType
  2812. orange
  2813. objectType
  2814. apple
  2815. $ 4 Y
  2816. objectType
  2817. orange
  2818. B R Y
  2819. objectType
  2820. apple
  2821. ` p Y
  2822. objectType
  2823. orange
  2824. objectType
  2825. apple
  2826. objectType
  2827. orange
  2828. enterPage
  2829. ASYM_BeenHere
  2830. Labels
  2831. label
  2832. Labels
  2833. If you need to quiz the subject on elements in an illustration, a good method is to use dragging labels.
  2834. Each label below is a widget that automatically handles dragging. The bicycle is a paint object, with a group of transparent graphic objects on top of it. If the label is dropped on a graphic object in this group, the label sends the group a message. The group, in turn, checks to see if the name of the graphic object matches the name of the label group.
  2835. Drag the labels to the appropriate parts of the bicycle.
  2836. target group
  2837. chainRings
  2838. toptube
  2839. headTube
  2840. deraileur
  2841. gradeMe
  2842. 1,    #?
  2843. 1,    #?
  2844. target group
  2845. grade
  2846. grade
  2847. You got
  2848. showWrongAnswers
  2849. out of
  2850. buttonclick
  2851. buttonclick
  2852. grade 
  2853. "You got" && 
  2854. %&& "out 
  2855. " && 
  2856. :& "."
  2857. showWrongAnswers 
  2858. Grade me
  2859. showAnswers
  2860. target group
  2861. showRightAnswers
  2862. buttonclick
  2863. buttonclick
  2864. showRightAnswers 
  2865. Show answers
  2866. toptube
  2867. origLoc
  2868. label
  2869. Top tube
  2870. bottomLine
  2871. topLeft
  2872. point
  2873. topRight
  2874. headTube
  2875. origLoc
  2876. label
  2877. Head tube
  2878. bottomLine
  2879. topLeft
  2880. point
  2881. topRight
  2882. chainRings
  2883. origLoc
  2884. 5949,2910
  2885. label
  2886. Chain rings
  2887. bottomLine
  2888. topLeft
  2889. point
  2890. topRight
  2891. Initialize
  2892. initQuiz
  2893. buttonclick
  2894. initQuiz
  2895. enterPage
  2896. -- initQuiz 
  2897. handled 
  2898. Hnotify handlers 
  2899. buttonclick
  2900. notifyBefore 
  2901. Initialize
  2902. deraileur
  2903. origLoc
  2904. 5026,2910
  2905. label
  2906. Deraileur
  2907. bottomLine
  2908. topLeft
  2909. point
  2910. topRight
  2911. 4073,2910
  2912. ASYM_BeenHere
  2913. initQuiz
  2914. reader
  2915. author
  2916. enterPage
  2917. 5949,2910
  2918. 3195,2910
  2919. Matching Quiz
  2920. label
  2921. Matching Quiz
  2922. The widget below is useful for creating a matching quiz. The two fields below use the OpenScript's drag and drop commands to draw lines from one column to the other.
  2923. The widget has the userProperty answers, which is a list of numbers for each item on the left showing its corresponding match on the right. For example, if the subject matched left item 1 with right item 3 and left item 2 with right item 6, the userProperty answers would return "2,6" when queried. You can also set answers to a list, which will result in the lines being drawn to their appropriate positions.
  2924. Drag and drop from left to right to match each artist with the appropriate movement. 
  2925. MatchingQuiz
  2926. tbk_wid_name
  2927. MatchingQuiz
  2928. tbk_wid_props
  2929. answers
  2930. tbk_wid_values
  2931. false
  2932. "textlinefrompoint
  2933. allowDrag
  2934. BlineNum
  2935. "textlinefrompoint
  2936. beginDrag
  2937. BlineNum
  2938. endDrag
  2939. reader
  2940. author
  2941. author
  2942. enterpage
  2943. allowDrag
  2944. tlfp 
  2945. textlinefrompoint(
  2946. beginDrag
  2947. lineNum 
  2948. endDrag
  2949. notifyBefore 
  2950. lineNum
  2951. Monet
  2952. Raphael
  2953. Picasso
  2954. Courbet
  2955. Redon
  2956. zanne
  2957. right
  2958. .',    "
  2959. "textlinefrompoint
  2960. BlineNum
  2961. edrawLine
  2962. objectDropped
  2963. false
  2964. "textlinefrompoint
  2965. targName
  2966. allowDrop
  2967. reader
  2968. author
  2969. author
  2970. enterpage
  2971. objectDropped sourceObj
  2972. tlfp 
  2973. textlinefrompoint(
  2974. drawLine lineNum 
  2975. allowDrop 
  2976. targName 
  2977. notifyBefore 
  2978. lineNum
  2979. Realism
  2980. Symbolism
  2981. Post-impressionism
  2982. Classicism
  2983. Impressionism
  2984. Romanticism
  2985. Cubism
  2986. gradeMe
  2987. V,    #?
  2988. FManswers
  2989. rightanswers
  2990. score
  2991. You got
  2992. studentAnswers
  2993. out of
  2994. matchingQuiz
  2995. buttonclick
  2996. buttonclick
  2997. studentAnswers 
  2998. answers 
  2999. "matchingQuiz"
  3000. rightanswers 
  3001. 5,4,6,7,1,2,3
  3002.     answerCount = 
  3003. (rightAnswers)
  3004.     score = 0
  3005. "You got" && 
  3006. E&& "out 
  3007. u& "."
  3008. Grade me
  3009. showAnswers
  3010. GManswers
  3011. matchingQuiz
  3012. buttonclick
  3013. buttonclick
  3014. answers 
  3015. matchingQuiz 
  3016. 5,4,6,7,1,2,3
  3017. Show answers
  3018. Initialize
  3019. GManswers
  3020. matchingQuiz
  3021. buttonclick
  3022. GManswers
  3023. matchingQuiz
  3024. enterPage
  3025. -- initQuiz 
  3026. handled 
  3027. Hnotify handlers 
  3028. buttonclick
  3029. answers 
  3030. "matchingQuiz" 
  3031. notifyBefore 
  3032. Initialize
  3033. enterPage
  3034. 'aracter
  3035. paragraph
  3036. leavepage
  3037. reader
  3038. author
  3039. ASYM_BeenHere
  3040. character
  3041. 1,    "j
  3042. .',    "
  3043. minus
  3044. searchReplace
  3045. /searchReplace
  3046. 0]outLineNumber
  3047. minus
  3048. indentLevel
  3049. curLevel
  3050. subheadings
  3051. buttonDoubleClick
  3052. keyDown
  3053. .'+    +
  3054. source
  3055. /searchReplace
  3056. curmode
  3057. subheadings
  3058. source
  3059. operatingMode
  3060. reader
  3061. B7oldBook
  3062. JFoperatingmode
  3063. enterPage
  3064. JFoperatingmode
  3065. author
  3066. JFoperatingmode
  3067. reader
  3068. source
  3069. textLineNumber
  3070. indentLevel
  3071. subHeadings
  3072. ,&H.&
  3073. counter
  3074. indentLevel
  3075. indentLevel
  3076. outlineNumber
  3077. false
  3078. indentLevel
  3079. foundNextSibling
  3080. textlineNumber
  3081. A7oldBook
  3082. minus
  3083. Use copy, not cut, on this widget.
  3084. Cancel
  3085. B7oldBook
  3086. You must save this book before copying this widget.
  3087. ,"JdY
  3088. 1,"EL
  3089. barWeight
  3090. defValues
  3091. defValues
  3092. PlotValues
  3093. defValues
  3094. plotValues
  3095. Y=myPlotWeight
  3096. plotValues
  3097. risNumber
  3098. barWeight
  3099. PlotWeight
  3100. X=myPlotWeight
  3101. plotWeight
  3102. ,&H.&
  3103. risNumber
  3104. eEmyPlotColors
  3105. PlotColors
  3106. dEmyPlotColors
  3107. plotColors
  3108. isNumber
  3109. false
  3110. showframe
  3111. author
  3112. showFrame
  3113. enterPage
  3114. showFrame
  3115. author
  3116. false
  3117. showFrame
  3118. reader
  3119. .'+    +F
  3120. linVertices
  3121. vValLine
  3122. oldCursor
  3123. linObj
  3124. defValues
  3125. defValues
  3126. PlotValues
  3127. defValues
  3128. plotValues
  3129. ,"Jd"
  3130. .',    "
  3131. .',    "
  3132. ,&H.&
  3133. Y=myPlotWeight
  3134. risNumber
  3135. PlotWeight
  3136. X=myPlotWeight
  3137. plotWeight
  3138. ,&H.&
  3139. risNumber
  3140. eEmyPlotColors
  3141. PlotColors
  3142. dEmyPlotColors
  3143. PlotColors
  3144. isNumber
  3145. false
  3146. showframe
  3147. author
  3148. showFrame
  3149. enterPage
  3150. showFrame
  3151. author
  3152. false
  3153. showFrame
  3154. reader
  3155. FALSE
  3156. txClassName
  3157. Thumb
  3158. setSliderLimits
  3159. buttonDown
  3160. 1,#!#
  3161. false
  3162. s_sliderPosition
  3163. HSliderThumb
  3164. s_sliderv
  3165. VSliderThumb
  3166. txClassName
  3167. s_sliderMin
  3168. s_sliderMax
  3169. oslidePos
  3170. 9sldrPosition
  3171. buttonStillDown
  3172. s_sliderV
  3173. false
  3174. snapSlider
  3175. s_sliderPosition
  3176. HSliderThumb
  3177. VSliderThumb
  3178. txClassName
  3179. s_sliderMin
  3180. s_sliderMax
  3181. oslidePos
  3182. sliderPosition
  3183. buttonUp
  3184. s_sliderV
  3185. HSliderThumb
  3186. VSliderThumb
  3187. txClassName
  3188. s_sliderMin
  3189. s_sliderMax
  3190. glide
  3191. setSliderLimits
  3192. slidePos
  3193. 9sldrPosition
  3194. sliderPosition
  3195. newPos
  3196. OldMax
  3197. hSliderThumb
  3198. pOffset
  3199. group
  3200. SliderThumb
  3201. OldMin
  3202. vSliderThumb
  3203. txClassName
  3204. s_sliderMin
  3205. s_sliderMax
  3206. thumb
  3207. setSliderLimits
  3208. sliderPosition
  3209. 9sldrPosition
  3210. sliderPosition
  3211. detentList
  3212. snapSlider
  3213. txClassName
  3214. Thumb
  3215. setSliderLimits
  3216. buttonDown
  3217. 1,#!#
  3218. s_sliderPosition
  3219. HSliderThumb
  3220. s_sliderv
  3221. VSliderThumb
  3222. txClassName
  3223. s_sliderMin
  3224. s_sliderMax
  3225. oslidePos
  3226. 9sldrPosition
  3227. buttonStillDown
  3228. s_sliderV
  3229. snapSlider
  3230. s_sliderPosition
  3231. HSliderThumb
  3232. VSliderThumb
  3233. txClassName
  3234. s_sliderMin
  3235. s_sliderMax
  3236. oslidePos
  3237. sliderPosition
  3238. buttonUp
  3239. s_sliderV
  3240. }[centered
  3241. HSliderThumb
  3242. height
  3243. VSliderThumb
  3244. txClassName
  3245. s_sliderMin
  3246. s_sliderMax
  3247. width
  3248. glide
  3249. setSliderLimits
  3250. slidePos
  3251. 9sldrPosition
  3252. sliderPosition
  3253. newPos
  3254. OldMax
  3255. hSliderThumb
  3256. pOffset
  3257. group
  3258. SliderThumb
  3259. OldMin
  3260. vSliderThumb
  3261. txClassName
  3262. s_sliderMin
  3263. s_sliderMax
  3264. thumb
  3265. setSliderLimits
  3266. sliderPosition
  3267. 9sldrPosition
  3268. sliderPosition
  3269. detentList
  3270. snapSlider
  3271. sliderMove
  3272. sliderMax
  3273. sliderMin
  3274. sliderMax
  3275. sliderBounds
  3276. sliderMin
  3277. nearestPupp
  3278. thumb
  3279. mySliderPos
  3280. nearestPUPP
  3281. sliderPos
  3282. sliderMax
  3283. curfield
  3284. numTics
  3285. mtallTicSpacing
  3286. sliderMin
  3287. DxCenter
  3288. LnumTics
  3289. adjustNumbers
  3290. xCenter
  3291. mySliderMax
  3292. sliderMin
  3293. W\adjustNumbers
  3294. is invalid.
  3295. sliderMin
  3296. sliderMax
  3297. sliderMax
  3298. sliderMax
  3299. mySliderMin
  3300. W\adjustNumbers
  3301. is invalid.
  3302. sliderMin
  3303. ,&H.&
  3304. myTallTicSpacing
  3305. W\adjustNumbers
  3306. tallTicSpacing
  3307. curLine
  3308. sliderMax
  3309. sliderMin
  3310. thumb
  3311. sliderMax
  3312. sliderBounds
  3313. W\adjustNumbers
  3314. sliderMin
  3315. numTics must be a value between 1 and 50.
  3316. myNumTics
  3317. nearestPupp
  3318. nearestPUPP
  3319. leftMost
  3320. numTics
  3321. myTallTicSpacing
  3322. tallTicSpacing
  3323. mySliderMin
  3324. sliderMin
  3325. myNumTics
  3326. numTics
  3327. mySliderMax
  3328. sliderMax
  3329. mySliderPos
  3330. sliderPos
  3331. startSliderMove
  3332. sliderMove
  3333. endSliderMove
  3334. nearestPUPP
  3335. getSystemMetrics
  3336. getSystemMetrics
  3337. primaryMouseButton
  3338. DialogCallback
  3339. SetValue
  3340. GetValue
  3341. AddListBoxItem
  3342. DeletenListBoxItem
  3343. EnableControl
  3344. GetControlText
  3345. GetDialogFocus
  3346. GetListBoxItems
  3347. GetListBoxSelection
  3348. GetnListBoxSelection
  3349. SetControlText
  3350. SetDialogFocus
  3351. SetListBoxItems
  3352. SetnListBoxSelection
  3353. endTBKDialog
  3354. vSetValue
  3355. listBox answers
  3356. 524480,9,25,25,228,104,,,Edit Multiple Choice,8,MS Sans Serif,,2,4,171,80,3597,1342177287,128,Answers:,0,,5,59,125,7,3603,1342177280,130,Text,0,answers,5,17,124,39,3596,1352728577,131,,0,add,133,17,37,12,3600,1342242816,128,&Add,0,delete,133,31,37,12,3601,1342242816,128,&Delete,0,edit,133,45,37,12,3602,1342242816,128,&Edit...,0,message,5,69,124,11,3604,1350631552,129,,0,ok,178,7,44,12,1,1342242817,128,OK,0,cancel,178,22,44,12,3606,1342242816,128,Cancel,0
  3357. tb40dlg.dll
  3358. <ManswerMessage
  3359. ,G3597,Answers:
  3360. ,S3603,Message to Send When Chosen:
  3361. LISTBOX answers,L3596,
  3362. BUTtoN add,B3600,NODISMISS
  3363. BUTtoN delete,B3601,NODISMISS
  3364. BUTtoN edit,B3602,NODISMISS
  3365. EDIT message,E3604,
  3366. BUTtoN ok,B1,TRUE
  3367. BUTtoN cancel,B3606,FALSE
  3368. vADialogCallback
  3369. 2    s_answerMessages
  3370. customEdit
  3371. SetControlText
  3372. listbox answers
  3373. SetnListBoxSelection
  3374. listBox answers
  3375. button delete
  3376. edit message
  3377. jGetListBoxSelection
  3378. AEnableControl
  3379. GetListBoxItems
  3380. TBKDialogInit
  3381. 1+5!7
  3382. V,    #>
  3383. .&,    #>
  3384. .&,    #>
  3385. .&,    #>
  3386. Cancel
  3387. QOtbk_wid_props
  3388. wAddListBoxItem
  3389. custom,editWidget
  3390. LISTBOX answers
  3391. button
  3392. gobjLayer
  3393. GetnListBoxSelection
  3394. Button add
  3395. SetControlText
  3396. GvSetDialogFocus
  3397. listbox answers
  3398. Button delete
  3399. send (answerMessage of target) to target
  3400. SetnListBoxSelection
  3401. endTBKDialog
  3402. newAnswer
  3403. GetControlText
  3404. lGetDialogFocus
  3405. answer
  3406. Multiple Choice
  3407. Button edit
  3408. EDIT message
  3409. listBox answers
  3410. send customEdit to item 1 of my objects
  3411. Answer &
  3412. button delete
  3413. Answer Caption:
  3414. 4DeletenListBoxItem
  3415. Button ok
  3416. editWidget
  3417. edit message
  3418. Button cancel
  3419. SetListBoxItems
  3420. =ManswerMessage
  3421. jGetListBoxSelection
  3422. sptbk_wid_values
  3423. tbk_wid_name
  3424. AEnableControl
  3425. to handle buttonClick
  3426. 2    s_answerMessages
  3427. GetListBoxItems
  3428. to set editWidget
  3429. TBKDialogCommand
  3430. page,background
  3431. objLayer
  3432. reader
  3433. customEdit
  3434. reader
  3435. enterPage
  3436. author
  3437. b;origLoc
  3438. newloc
  3439. getsystemmetrics
  3440. getsystemmetrics
  3441. checkObject
  3442. dropTarget
  3443. buttondown
  3444. labelPosition
  3445. b;origLoc
  3446. initQuiz
  3447. c;origLoc
  3448. moved
  3449. c;origLoc
  3450. label
  3451. topLeft
  3452. topRight
  3453. c;origLoc
  3454. point
  3455. bottomLine
  3456. sized
  3457. enterPage
  3458. s_lheight
  3459. leavepage
  3460. linkStuff
  3461. s_lheight
  3462. FManswers
  3463. GManswers
  3464. s_lheight
  3465. fontChange
  3466. fontChange
  3467. character
  3468. fontChange
  3469. paragraph
  3470. FManswers
  3471. right
  3472. GManswers
  3473. sized
  3474. FManswers
  3475. right
  3476. GManswers
  3477. moved
  3478. false
  3479. answerList
  3480. edrawLine
  3481. answers
  3482. answerList
  3483. answers
  3484. leftRef
  3485. rightRef
  3486. false
  3487. right
  3488. angLine
  3489. rightY
  3490. leftTLBE
  3491. rightTLBE
  3492. answerList
  3493. textLineBeginEnd
  3494. answerList
  3495. leftY
  3496. drawLine
  3497. lineheight
  3498. stringLen
  3499. leftBound
  3500. rightbound
  3501. midLine
  3502. /$stringHeight
  3503. textLineBeginEnd
  3504. lineheight
  3505. stringLen
  3506. textLineFromPoint
  3507. SIgetTextExtent
  3508. selectObject
  3509. deleteObject
  3510. createFont
  3511. getDC
  3512. releaseDC
  3513. linkstuff
  3514. ,"JHY
  3515. selectObject
  3516. hOldObject
  3517. }releaseDC
  3518. Failure: no logical font created.
  3519. getDC
  3520. createFont
  3521. hfont
  3522. weight
  3523. makefont
  3524. .',    "
  3525. selectObject
  3526. deleteObject
  3527. hOldObject
  3528. }releaseDC
  3529. hfont
  3530. destroyFont
  3531. UdmakeFont
  3532. destroyFont
  3533. s_lheight
  3534. /$stringHeight
  3535. lineheight
  3536. UdmakeFont
  3537. destroyFont
  3538. retval
  3539. jogetTextExtent
  3540. stringLen
  3541. jogetTextExtent
  3542. stringHeight
  3543. nearestPUPP
  3544. sliderMove
  3545. sliderMax
  3546. sliderMin
  3547. mysliderPos
  3548. sliderMax
  3549. sliderBounds
  3550. sliderMin
  3551. nearestPupp
  3552. thumb
  3553. nearestPUPP
  3554. sliderPos
  3555. sliderMax
  3556. curfield
  3557. numTics
  3558. mtallTicSpacing
  3559. sliderMin
  3560. DxCenter
  3561. LnumTics
  3562. adjustNumbers
  3563. xCenter
  3564. mySliderMax
  3565. sliderMin
  3566. W\adjustNumbers
  3567. is invalid.
  3568. sliderMin
  3569. sliderMax
  3570. sliderMax
  3571. sliderMax
  3572. mySliderMin
  3573. W\adjustNumbers
  3574. is invalid.
  3575. sliderMin
  3576. ,&H.&
  3577. myTallTicSpacing
  3578. W\adjustNumbers
  3579. tallTicSpacing
  3580. curLine
  3581. sliderMax
  3582. sliderMin
  3583. thumb
  3584. sliderMax
  3585. sliderBounds
  3586. W\adjustNumbers
  3587. sliderMin
  3588. numTics must be a value between 1 and 50.
  3589. myNumTics
  3590. nearestPupp
  3591. nearestPUPP
  3592. leftMost
  3593. numTics
  3594. myTallTicSpacing
  3595. tallTicSpacing
  3596. mySliderMin
  3597. sliderMin
  3598. myNumTics
  3599. numTics
  3600. mySliderMax
  3601. sliderMax
  3602. mysliderPos
  3603. sliderPos
  3604. sliderMove
  3605. endSliderMove
  3606. secsAngle
  3607. totalTime
  3608. kDcurTime
  3609. sweep
  3610. oldTime
  3611. handVertices
  3612. jDcurTime
  3613. coords
  3614. radius
  3615. totalSecs
  3616. clocktime
  3617. ?handVertices
  3618.     myTotalTime
  3619. totalTime
  3620. 1,    #b
  3621. 1,    #>
  3622. minutes
  3623. timeFormat
  3624. quarter
  3625. is not a valid time format.
  3626. seconds
  3627. threeQuarters
  3628.     myTotalTime
  3629. hours
  3630. MVmyRound
  3631. totalTime
  3632. myRound
  3633. totaltimeLimit
  3634. minutes
  3635. totaltimeLimit
  3636. timeFormat
  3637. is not a valid time format.
  3638. clockTime
  3639. seconds
  3640. totalTime
  3641. totalTime
  3642. hours
  3643. timeLimit
  3644. seconds
  3645. totaltimeLimit
  3646. timeLimit
  3647. timeStart
  3648. timeGetTime
  3649. startTime
  3650. buttonstilldown
  3651. timeStart
  3652. timeStart
  3653. kDcurTime
  3654. clocktime
  3655. timeGetTime
  3656. curTime
  3657. totaltimeLimit
  3658. 4endtime
  3659. endtime
  3660. timeStart
  3661. kDcurTime
  3662. clockTime
  3663. leavepage
  3664. timeGetTime
  3665. mmsystem
  3666. enterpage
  3667. Etemplet
  3668. enterField
  3669. w,    #>
  3670. vgetCurrentDirectory
  3671. getCu
  3672. Self-sorting Field
  3673. label
  3674. Self-sorting Fielda
  3675. tbk_wid_name
  3676. lText
  3677. scrambleText
  3678. .'+    +F
  3679. $scrambleText
  3680. |sortSelf
  3681. default
  3682. buttonClick
  3683. scrambleText
  3684. ZSTRING unsortedText
  3685.     lText = 
  3686. "Sort"
  3687.     lTextCount = textlineCount(
  3688. N& CRLF 
  3689. buttonClick
  3690. sortSelf 
  3691. o= default
  3692. scramble text and sort
  3693. cancel
  3694. Please supply a textline to insert.
  3695. insertLine
  3696. newLine
  3697. buttonClick
  3698. buttonClick
  3699. ("Please supply a 
  3700. insert."
  3701. r<> "
  3702. newLine 
  3703. insertLine 
  3704. insert a textline
  3705. tbk_wid_name
  3706. APP850.FON
  3707. APPS.INF
  3708. ARCADE.BMP
  3709. ARGYLE.BMP
  3710. ARIALB.FON
  3711. ARIALBD.FOT
  3712. ARIALBD.TTF
  3713. ARIALBI.FOT
  3714. ARIALBI.TTF
  3715. ARIALI.FOT
  3716. ARIALI.TTF
  3717. BLUEMAX.VXD
  3718. CALC.EXE
  3719. CALC.HLP
  3720. CAN_ADF.EXE
  3721. CANON10E.DRV
  3722. CANON130.DRV
  3723. CANON330.DRV
  3724. CANYON.MID
  3725. CARDFILE.EXE
  3726. CARS.BMP
  3727. CASTLE.BMP
  3728. CGA.2GR
  3729. CGA40850.FON
  3730. CGA40WOA.FON
  3731. CGA80850.FON
  3732. CGA80WOA.FON
  3733. CGALOGO.RLE
  3734. CHARMAP.EXE
  3735. CHARMAP.HLP
  3736. CIT9US.DRV
  3737. CITOH.DRV
  3738. CLIPBRD.EXE
  3739. CLIPSIBM.SHH
  3740. CLIPSRV.EXE
  3741. CLOCK.EXE
  3742. COMM.DRV
  3743. COMMCTRL.DLL
  3744. CONTROL.EXE
  3745. CONTROL.SRC
  3746. COUR.FOT
  3747. COUR.TTF
  3748. COURBD.FOT
  3749. COURBD.TTF
  3750. COURE.FON
  3751. DDEML.DLL
  3752. DEC2150.WPD
  3753. DEC2250.WPD
  3754. DEC3250.WPD
  3755. DECCOLOR.WPD
  3756. DECLPS20.WPD
  3757. DEMILAYR.DLL
  3758. DEPCA.DOS
  3759. DISK2
  3760. DISK8
  3761. DISK9
  3762. DISKA
  3763. DISKB
  3764. DOSAPP.FON
  3765. DOSX.EXE
  3766. DRIVERS.CPL
  3767. DRWATSON.EXE
  3768. DSWAP.EXE
  3769. EGA.3GR
  3770. EGA.DRV
  3771. EGA.SYS
  3772. EGA40850.FON
  3773. EGA40WOA.FON
  3774. EGACOLOR.2GR
  3775. EGAHIBW.DRV
  3776. EGALOGO.RLE
  3777. EGAMONO.2GR
  3778. EGAMONO.DRV
  3779. EGAMONO.LGO
  3780. EGAMONO.RLE
  3781. EGAOEM.FON
  3782. EGYPT.BMP
  3783. ELNK3.DOS
  3784. ELNKMC.DOS
  3785. ELNKPL.DOS
  3786. EPL75523.WPD
  3787. EPSON9.DRV
  3788. ESCP2.DRV
  3789. EVX16.DOS
  3790. EXECJET.DRV
  3791. EXP16.DOS
  3792. EXPAND.EXE
  3793. FINSTALL.DLL
  3794. FINSTALL.HLP
  3795. GDI.EXE
  3796. GENDRV.DLL
  3797. HERC850.FON
  3798. HERCLOGO.LGO
  3799. HERCLOGO.RLE
  3800. HERCULES.2GR
  3801. HERCWOA.FON
  3802. HERMES_2.WPD
  3803. HIMEM.SYS
  3804. HONEY.BMP
  3805. HP_3P522.WPD
  3806. HPIID522.WPD
  3807. HPIIP522.WPD
  3808. HPLANB.DOS
  3809. HPMOUSE.DRV
  3810. HPPCL.DRV
  3811. HPPCL5MS.DRV
  3812. HPPLOT.DRV
  3813. HPSYSTEM.DRV
  3814. HRMDG.SHH
  3815. IBM39521.WPD
  3816. IBM4019.DRV
  3817. IBM5204.DRV
  3818. IBMCOLOR.DRV
  3819. IMPEXP.DLL
  3820. IPX.OBJ
  3821. KBDBE.DLL
  3822. KBDCA.DLL
  3823. KBDDV.DLL
  3824. KBDFI.DLL
  3825. KBDGR.DLL
  3826. KBDHP.DRV
  3827. KBDIT.DLL
  3828. KBDNE.DLL
  3829. KBDPO.DLL
  3830. KBDSF.DLL
  3831. KBDSG.DLL
  3832. KBDSP.DLL
  3833. KBDSW.DLL
  3834. KBDUK.DLL
  3835. KBDUS.DLL
  3836. KBDUSX.DLL
  3837. KEYBOARD.DRV
  3838. KRNL286.EXE
  3839. L300_493.WPD
  3840. L630_52&.WPD
  3841. LANGDUT.DLL
  3842. LANGENG.DLL
  3843. LANGFRN.DLL
  3844. LANGGER.DLL
  3845. LANGSPA.DLL
  3846. LBPIII.DRV
  3847. LMOUSE.DRV
  3848. LMSCRIPT.EXE
  3849. LMSCRIPT.PIF
  3850. LSL.COM
  3851. LVMD.386
  3852. LZEXPAND.DLL
  3853. MAC586.SYS
  3854. MADGE
  3855. MAILMGR.DLL
  3856. MAILSPL.EXE
  3857. MAPI.DLL
  3858. MCISEQ.DRV
  3859. MIDIMAP.DRV
  3860. MIS.SHH
  3861. MMSYSTEM.DLL
  3862. MMTASK.TSK
  3863. MMTLHI.DRV
  3864. MMTLLO.DRV
  3865. MODERN.FON
  3866. MORICONS.DLL
  3867. MOUSE.COM
  3868. MOUSE.DRV
  3869. MOUSE.SYS
  3870. MOUSEHP.COM
  3871. MPLAYER.EXE
  3872. MPU401.DRV
  3873. MSADLIB.DRV
  3874. MSD.INI
  3875. MSHEARTS.EXE
  3876. MSHEARTS.HLP
  3877. MSMAIL.EXE
  3878. MSMAIL.HLP
  3879. MSNET.DRV
  3880. MSREMIND.EXE
  3881. MSSCHED.DLL
  3882. MSSFS.DLL
  3883. MT_TI101.WPD
  3884. N2290520.WPD
  3885. N2990523.WPD
  3886. N890_470.WPD
  3887. N890X505.WPD
  3888. NDDEAPI.DLL
  3889. NDIS39XR.DOS
  3890. NE1000.DOS
  3891. NE2000.DOS
  3892. NEC24PIN.DRV
  3893. NET.EXE
  3894. NETAPI.DLL
  3895. NETDDE.EXE
  3896. NETH.MSG
  3897. NETWARE.DRV
  3898. NETWARE.HLP
  3899. NETWATCH.EXE
  3900. NETWORK.INF
  3901. NOTEPAD.EXE
  3902. NOTEPAD.HLP
  3903. NWPOPUP.EXE
  3904. OKI9.DRV
  3905. OKI9IBM.DRV
  3906. OL840518.WPD
  3907. OLESVR.DLL
  3908. OLIGRAB.2GR
  3909. PACKAGER.EXE
  3910. PACKAGER.HLP
  3911. PANSON24.DRV
  3912. PBRUSH.HLP
  3913. PE2NDIS.EXE
  3914. PIFEDIT.EXE
  3915. PLASMA.DRV
  3916. PMSPL.DLL
  3917. POWER.DRV
  3918. POWER.HLP
  3919. PRINTMAN.EXE
  3920. PRINTMAN.HLP
  3921. PRO4.DOS
  3922. PROGMAN.EXE
  3923. PROGMAN.HLP
  3924. PROPRINT.DRV
  3925. PROPRN24.DRV
  3926. PRORAPM.DWN
  3927. PROTMAN.EXE
  3928. PSCRIPT.DRV
  3929. Q2200510.WPD
  3930. Q820_517.WPD
  3931. QWIII.DRV
  3932. README.WRI
  3933. RECORDER.DLL
  3934. RECORDER.EXE
  3935. RECORDER.HLP
  3936. REGEDITV.HLP
  3937. RINGIN.WAV
  3938. RIVETS.BMP
  3939. ROMAN.FON
  3940. ROUTE.COM
  3941. SCHDPLUS.EXE
  3942. SCHEDMSG.DLL
  3943. SEIKO_04.WPD
  3944. SEIKO_14.WPD
  3945. SENDFILE.DLL
  3946. SERIFB.FON
  3947. SERIFE.FON
  3948. SERIFF.FON
  3949. SETUP.EXE
  3950. SETUP.INI
  3951. SETUP.REG
  3952. SETUP.TXT
  3953. SF4019.EXE
  3954. SHELL.DLL
  3955. SL.HLP
  3956. SMALLB.FON
  3957. SMARTDRV.EXE
  3958. SMARTND.DOS
  3959. SMC_ARC.DOS
  3960. SMC3000.DOS
  3961. SMCMAC.DOS
  3962. SNDBLST.DRV
  3963. SQUARES.BMP
  3964. SSERIFB.FON
  3965. SSERIFE.FON
  3966. SSMARQUE.SCR
  3967. STORE.DLL
  3968. SUPERVGA.DRV
  3969. SYMBOL.TTF
  3970. SYMBOLB.FON
  3971. SYSEDIT.EXE
  3972. SYSINI.WRI
  3973. SYSTEM.DRV
  3974. SYSTEM.SRC
  3975. TASKMAN.EXE
  3976. TBMI2.COM
  3977. TCCARC.DOS
  3978. TERMINAL.EXE
  3979. TERMINAL.HLP
  3980. TESTPS.TXT
  3981. THATCH.BMP
  3982. THINKJET.DRV
  3983. TI850.DRV
  3984. TIGA.DRV
  3985. TIM17521.WPD
  3986. TIM35521.WPD
  3987. TIMES.FOT
  3988. TIMESB.FON
  3989. TIMESBD.FOT
  3990. TIMESBD.TTF
  3991. TIMESBI.FOT
  3992. TIMESBI.TTF
  3993. TIMESI.FOT
  3994. TIMESI.TTF
  3995. TKPHZR21.WPD
  3996. TKPHZR31.WPD
  3997. TOOLHELP.DLL
  3998. TRIUMPH2.WPD
  3999. TRNSCHED.DLL
  4000. TTY.DRV
  4001. TTY.HLP
  4002. U9415470.WPD
  4003. USER.EXE
  4004. USREDIBM.SHH
  4005. V7VDD.386
  4006. V7VGA.3GR
  4007. V7VGA.DRV
  4008. VADLIBD.386
  4009. VBROWSE.386
  4010. VDDCGA.386
  4011. VDDHERC.386
  4012. VDDTIGA.386
  4013. VDDTLI4.386
  4014. VDDVGA30.386
  4015. VDDXGA.386
  4016. VDMAD.386
  4017. VER.DLL
  4018. VGA.3GR
  4019. VGA.DRV
  4020. VGA850.FON
  4021. VGA861.FON
  4022. VGA865.FON
  4023. VGACOLOR.2GR
  4024. VGADIB.3GR
  4025. VGAFIX.FON
  4026. VGALOGO.RLE
  4027. VGAMONO.2GR
  4028. VIPX.386
  4029. VNB.386
  4030. VNETBIOS.386
  4031. VNETSUP.386
  4032. VNETWARE.386
  4033. VPD.386
  4034. VPICD.386
  4035. VPOWERD.386
  4036. VREDIR.386
  4037. VSERVER.386
  4038. VWC.386
  4039. WFWNET.HLP
  4040. WGPOMGR.DLL
  4041. WIN.CNF
  4042. WIN.SRC
  4043. WIN386.EXE
  4044. WIN87EM.DLL
  4045. WINCHAT.EXE
  4046. WINCHAT.HLP
  4047. WINDOWS.LOD
  4048. WINFILE.EXE
  4049. WINFILE.HLP
  4050. WINGDING.TTF
  4051. WINHELP.EXE
  4052. WININI.WRI
  4053. WINLOGO.BMP
  4054. WINMINE.EXE
  4055. WINTUTOR.DAT
  4056. WINVER
  4057. WORKGRP.SYS
  4058. WRITE.EXE
  4059. WRITE.HLP
  4060. WSWAP.EXE
  4061. XGA.DRV
  4062. XLAT861.BIN
  4063. XMSMMGR.EXE
  4064. ZIGZAG.BMPPPMMGR.EXE
  4065. ZIGZAG.BMPXE
  4066. COMM.DRV
  4067. Q2200510.WPD
  4068. SCHDPLUS.EXE
  4069. SUPERVGA.DRV
  4070. KBDHP.DRV
  4071. SERIFE.FON
  4072. VGA865.FON
  4073. SYMBOL.TTF
  4074. VREDIR.386
  4075. FINSTALL.HLP
  4076. HIMEM.SYS
  4077. V7VDD.386
  4078. N2290520.WPD
  4079. DDEML.DLL
  4080. MSMAIL.HLP
  4081. HPPCL5MS.DRV
  4082. SYSINI.WRI
  4083. WINCHAT.EXE
  4084. VDDXGA.386
  4085. ARIALBD.TTF
  4086. POWER.HLP
  4087. EGYPT.BMP
  4088. SYSEDIT.EXE
  4089. SSMARQUE.SCR
  4090. IBM4019.DRV
  4091. CHARMAP.HLP
  4092. VDDTLI4.386
  4093. DECCOLOR.WPD
  4094. HERCLOGO.LGO
  4095. TIMESI.TTF
  4096. ARIALBD.FOT
  4097. SL.HLP
  4098. README.WRI
  4099. PACKAGER.EXE
  4100. NETAPI.DLL
  4101. LMOUSE.DRV
  4102. CANON330.DRV
  4103. EGA.3GR
  4104. PRO4.DOS
  4105. OKI9.DRV
  4106. TIMESBD.TTF
  4107. KBDGR.DLL
  4108. VNB.386
  4109. EGA.SYS
  4110. N890_470.WPD
  4111. VNETSUP.386
  4112. COURBD.FOT
  4113. HPPCL.DRV
  4114. DISK8
  4115. ROMAN.FON
  4116. KBDCA.DLL
  4117. SERIFB.FON
  4118. MOUSEHP.COM
  4119. CGA.2GR
  4120. PRINTMAN.HLP
  4121. LZEXPAND.DLL
  4122. DOSAPP.FON
  4123. WIN.CNF
  4124. ZIGZAG.BMP
  4125. VBROWSE.386
  4126. TIM17521.WPD
  4127. WINVER
  4128. VNETBIOS.386
  4129. MOUSE.DRV
  4130. QWIII.DRV
  4131. PROGMAN.HLP
  4132. WSWAP.EXE
  4133. EPSON9.DRV
  4134. PMSPL.DLL
  4135. WORKGRP.SYS
  4136. SSERIFB.FON
  4137. MODERN.FON
  4138. COMMCTRL.DLL
  4139. WINFILE.EXEPP.EXE
  4140. WRITE.HLP
  4141. WSWAP.EXE
  4142. XGA.DRV
  4143. XLAT861.BIN
  4144. XMSMMGR.EXE
  4145. ZIGZAG.BMPDTIGA.386
  4146. CLIPBRD.EXE
  4147. GLOSSARY.HLP
  4148. TTY.HLP
  4149. VCD.386
  4150. LANGGER.DLL
  4151. SETUP.HLP
  4152. PS1.DRV
  4153. VGALOGO.RLE
  4154. VWC.386
  4155. PROGMAN.EXE
  4156. EGA80850.FON
  4157. POWER.HLP
  4158. FINSTALL.DLL
  4159. N890_470.WPD
  4160. TERMINAL.EXE
  4161. LMSCRIPT.EXE
  4162. NETWARE.DRV
  4163. COMM.DRV
  4164. MSREMIND.EXE
  4165. MSNET.DRV
  4166. HPLANB.DOS
  4167. EGACOLOR.2GR
  4168. MT_TI101.WPD
  4169. ELNKPL.DOS
  4170. 8514FIX.FONNN.HLP
  4171. VCD.386
  4172. LANGGER.DLL
  4173. SETUP.HLP
  4174. PS1.DRV
  4175. VGALOGO.RLE
  4176. VWC.386
  4177. PROGMAN.EXE
  4178. EGA80850.FON
  4179. POWER.HLP
  4180. FINSTALL.DLL
  4181. N890_470.WPD
  4182. TERMINAL.EXE
  4183. LMSCRIPT.EXE
  4184. NETWARE.DRV
  4185. COMM.DRV
  4186. MSREMIND.EXE
  4187. MSNET.DRV
  4188. HPLANB.DOS
  4189. EGACOLOR.2GR
  4190. MT_TI101.WPD
  4191. ELNKPL.DOS
  4192. 8514FIX.FONNNDOS
  4193. FINSTALL.HLP
  4194. CONTROL.SRC
  4195. DECLPS20.WPD
  4196. VPICD.386
  4197. KBDIT.DLL
  4198. VGADIB.3GR
  4199. CANYON.MID
  4200. SYSTEM.SRC
  4201. VDDTIGA.386
  4202. CLIPBRD.EXE
  4203. GLOSSARY.HLP
  4204. TTY.HLP
  4205. VCD.386
  4206. LANGGER.DLL
  4207. SETUP.HLP
  4208. PS1.DRV
  4209. VGALOGO.RLE
  4210. VWC.386
  4211. PROGMAN.EXE
  4212. EGA80850.FON
  4213. POWER.HLP
  4214. FINSTALL.DLL
  4215. N890_470.WPD
  4216. TERMINAL.EXE
  4217. LMSCRIPT.EXE
  4218. NETWARE.DRV
  4219. COMM.DRV
  4220. MSREMIND.EXE
  4221. MSNET.DRV
  4222. HPLANB.DOS
  4223. EGACOLOR.2GR
  4224. MT_TI101.WPD
  4225. ELNKPL.DOS
  4226. 8514FIX.FON
  4227. VWC.386
  4228. WFWNET.DRV
  4229. WFWNET.HLP
  4230. WFWSETUP.CPL
  4231. WGPOMGR.DLL
  4232. WIN.CNF
  4233. WIN.SRC
  4234. WIN386.EXE
  4235. WIN386.PS2
  4236. WIN87EM.DLL
  4237. WINCHAT.EXE
  4238. WINCHAT.HLP
  4239. WINDOWS.LOD
  4240. WINFILE.EXE
  4241. WINFILE.HLP
  4242. WINGDING.FOT
  4243. WINGDING.TTF
  4244. WINHELP.EXE
  4245. WINHELP.HLP
  4246. WININI.WRI
  4247. WINLOGO.BMP
  4248. WINMETER.EXE
  4249. WINMINE.EXE
  4250. WINMINE.HLP
  4251. WINOA386.MOD
  4252. WINOLDAP.MOD
  4253. WINTUTOR.DAT
  4254. WINTUTOR.EXE
  4255. WINVER
  4256. WORKGRP.SYS
  4257. WRITE.EXE
  4258. WRITE.HLP
  4259. WSWAP.EXE
  4260. XGA.DRV
  4261. XLAT850.BIN
  4262. XLAT860.BIN
  4263. XLAT861.BIN
  4264. XLAT863.BIN
  4265. XLAT865.BIN
  4266. XMSMMGR.EXE
  4267. ZIGZAG.BMP
  4268. ZIGZAG.BMP<
  4269. This self-sorting field has scripts for sorting any text placed in it, and for inserting any textline in sorted order.
  4270. To sort text in this widget field, set the text of the field to the text you want sorted, then send the field the message sortSelf. 
  4271. To insert a new line into the text, send the field the message insertLine with the text of the new line as a parameter..The "insert a textline" button has this script:
  4272. clear sysError
  4273. ask "Please supply a textline to insert."
  4274. if sysError <> "cancel"
  4275.     set newLine to it
  4276.     send insertLine newLine to field "sort"
  4277. endror
  4278. ask "Please supply a textline to insert."
  4279. if sysError <> "cancel"
  4280.     set newLine to it
  4281.     send insertLine newLine to field "sort"
  4282. Scramble and Sort
  4283. Insert
  4284. ASYM_BeenHere
  4285. Searching Field
  4286. label
  4287. ASYM_BeenHere
  4288. Searching Field
  4289. By typing in the field at the top, you can find an entry in the field below.
  4290. In response to the enterPage message for this page, the scrolling field fills an array with its text. This helps speed the search that takes place after each keyDown message in the upper field.
  4291. search
  4292. search
  4293. tbk_wid_name
  4294. index
  4295. .'+    +
  4296. itemArray
  4297. enterPage
  4298. buttonUp
  4299. notifyBefore 
  4300. 4ARRAY STRING itemArray[]
  4301.     fill 
  4302. B] order
  4303. oselectedTextlines 
  4304. activate
  4305. after
  4306. again
  4307. alias
  4308. align
  4309. angle
  4310. application
  4311. argument
  4312. ascending
  4313. background
  4314. backgroundimage
  4315. before
  4316. bitand
  4317. bitnot
  4318. bitor
  4319. bitshiftleft
  4320. bitshiftright
  4321. bitxor
  4322. break
  4323. caption
  4324. changes
  4325. character
  4326. characters
  4327. chars
  4328. check
  4329. chooseresource
  4330. clear
  4331. close
  4332. closefile
  4333. closeremote
  4334. commandwindow
  4335. conditions
  4336. contains
  4337. context
  4338. continue
  4339. createfile
  4340. deactivate
  4341. decrement
  4342. default
  4343. descending
  4344. dimensions
  4345. direction
  4346. disable
  4347. dynamic
  4348. eighth
  4349. eject
  4350. enable
  4351. excluding
  4352. execute
  4353. executeremote
  4354. export
  4355. extend
  4356. fifth
  4357. first
  4358. fixed
  4359. format
  4360. forward
  4361. fourth
  4362. fxdissolve
  4363. fxwipe
  4364. fxzoom
  4365. getremote
  4366. graphic
  4367. handle
  4368. helptext
  4369. import
  4370. importgraphic
  4371. increment
  4372. insteadof
  4373. items
  4374. keepremote
  4375. linkdll
  4376. local
  4377. locateonly
  4378. magnify
  4379. menubar
  4380. menuenabled
  4381. menuitem
  4382. menuitemchecked
  4383. menuitemenabled
  4384. menustate
  4385. middle
  4386. minimized
  4387. modal
  4388. ninth
  4389. normal
  4390. notactive
  4391. notifyafter
  4392. notifybefore
  4393. number
  4394. openfile
  4395. order
  4396. pageimage
  4397. password
  4398. pause
  4399. previous
  4400. print
  4401. properties
  4402. readfile
  4403. records
  4404. reference
  4405. remove
  4406. request
  4407. reset
  4408. resource
  4409. resourcecount
  4410. resourcelist
  4411. respondremote
  4412. restore
  4413. return
  4414. scrollbar
  4415. search
  4416. second
  4417. seconds
  4418. seekfile
  4419. select
  4420. sendnotifyafter
  4421. sendnotifybefore
  4422. separator
  4423. setmenuhelptext
  4424. setmenuitemhelptext
  4425. setmenuitemname
  4426. setmenuname
  4427. setremote
  4428. seventh
  4429. shift
  4430. silently
  4431. sixth
  4432. speed
  4433. spooler
  4434. start
  4435. store
  4436. target
  4437. tenth
  4438. textfrompoint
  4439. textline
  4440. textlines
  4441. third
  4442. ticks
  4443. topic
  4444. transition
  4445. translatewindowmessage
  4446. uncheck
  4447. unlinkdll
  4448. unselect
  4449. until
  4450. untranslateallwindowmessages
  4451. untranslatewindowmessage
  4452. using
  4453. variable
  4454. variables
  4455. while
  4456. window
  4457. within
  4458. without
  4459. words
  4460. writefile                        
  4461. seed    
  4462. seekfile            
  4463. select    
  4464. self                
  4465. send    
  4466. sendnotifyafter    
  4467. sendnotifybefore    
  4468. separator            
  4469. set                 
  4470. setmenuhelptext     
  4471. setmenuitemhelptext
  4472. setmenuitemname     
  4473. setmenuname         
  4474. setremote
  4475. seventh                         
  4476. shift                
  4477. show    
  4478. silently            
  4479. sixth                
  4480. slow                
  4481. sort    
  4482. speed                
  4483. spooler                         
  4484. start    
  4485. step    
  4486. store    
  4487. target                
  4488. tenth                
  4489. textfrompoint        
  4490. textline            
  4491. textlines            
  4492. then                
  4493. third                
  4494. this                
  4495. ticks                
  4496. time                
  4497. to                    
  4498. tool                
  4499. topic                
  4500. transition
  4501. translatewindowmessage
  4502. uncheck             
  4503. unlinkdll
  4504. unselect
  4505. until                
  4506. untranslateallwindowmessages    
  4507. untranslatewindowmessage        
  4508. using                
  4509. variable            
  4510. variables            
  4511. when                
  4512. while    
  4513. window                
  4514. with                
  4515. within                
  4516. without                         
  4517. word                
  4518. words                
  4519. writefilefile
  4520. enterPage
  4521. Better Combobox
  4522. label
  4523. Better Combobox
  4524. maxSize
  4525. "LmaxSize
  4526. enterDropdown
  4527. enterDropdown
  4528.     maxSize = 
  4529. (dropDownItems 
  4530.         lineCount 
  4531.         scrollable 
  4532. = TRUE
  4533. = FALSE
  4534. tbk_wid_name
  4535. BetterCombo
  4536. tbk_wid_props
  4537. maxSize
  4538. tbk_wid_values
  4539. list,1,2,3,4,5,6,7,8,9,10
  4540. maxSize
  4541. Brenda
  4542. Frank
  4543. Brenda
  4544. Willy 
  4545. This combobox knows to set the size of the dropdown field intelligently.
  4546. This combobox will set the size of the dropdown field to the number of entries, but only if that number doesn't exceed a certain amount. That limit is in the userProperty of the combobox maxSize. If the number of dropdown items is greater than maxSize, the dropdown field gets a scrollbar...
  4547. ASYM_BeenHere
  4548. Drag a Textline
  4549. label
  4550. Drag a Textline
  4551. DragTextline
  4552. dragTextLine
  4553. beginDrag
  4554. +#,""
  4555. +#,I4
  4556. +#,"J
  4557. +#,I4
  4558. 2,    #>
  4559. +#,I4
  4560. dragTextLine
  4561. stillOverDrop
  4562. beginDrag
  4563. dragTextLine
  4564. oselectedTextLines = 
  4565. stillOverDrop pObject, loc
  4566. currentTextLine
  4567.         currentTextline = 
  4568. &CRLF 
  4569.  + 1 
  4570.         dragTextline = 
  4571. tbk_wid_name
  4572. DragTextline
  4573. smith
  4574. You can drag any textline to a new position in the field below.
  4575. This field allows you to drag a textline up or down and displays the results as you drag.
  4576. ASYM_BeenHere
  4577. Drag and Drop Text
  4578. label
  4579. Drag and Drop Text
  4580. Drag_Drop_Text
  4581. tbk_wid_name
  4582. Drag_Drop_Text
  4583. Drag&Drop: 
  4584. Select some text in this field and drag it to the other field s. One of the other fields allows drops, the other doesn't. Test,
  4585. stest
  4586. tetstetst
  4587. stillOverDrop
  4588. enterDrop
  4589. stillOverDrop sourceObj, loc
  4590. FALSE
  4591. caretLocation 
  4592. enterDrop
  4593. This widget enables you to select text, then drag it into another field.
  4594. This widget allows you to drag any text out of it and then drop that text into any field that has its allowDrop property set to true. You can create such a field in the application you paste the widget into by drawing a field, then setting allowDrop to true from the Field Property dialog box.
  4595. ASYM_BeenHere
  4596. Drop_Target
  4597. 06cleanUp
  4598. leavePage
  4599. ,&H.&
  4600. dropFiles
  4601. cleanUp
  4602. cleanUp
  4603.     objs = 
  4604. c"OLE"
  4605. "dropFiles"
  4606. Multiple OLE Drag and Drop
  4607. label
  4608. Multiple OLE Drag and Drop
  4609. Drag files from the File Manager into the field below.  
  4610. This field extends ToolBook's OLE capabilities by accepting multiple objects simultaneously, and by displaying the file names of the OLE objects. 
  4611. Just before each drop and at the leavePage message, the OLE objects already on the page are deleted and the text of the field is cleared. This is a function of the page, not the widget.
  4612. dropFiles
  4613. OLE Drop field
  4614. tbk_wid_name
  4615. enterPage
  4616. reader
  4617. leavepage
  4618. cleanUp
  4619. "month"
  4620. "day"
  4621. "year"
  4622. value
  4623. ZLONG days
  4624.  = daysInMonth()
  4625. 5) + 1
  4626. %"00"
  4627. %"00"
  4628.  < 1 
  4629. outside range 1 
  4630. %"00"
  4631. k12) + 1
  4632. %"00"
  4633. %"00"
  4634.  < 1 
  4635.  > 12
  4636. &&"out 
  4637. %"00"
  4638.  + 1) 
  4639. %"00"
  4640. %"00"
  4641.  < 0 
  4642.  > 99
  4643. %"00"
  4644. initialize
  4645. 4OBJECT newHotwordID
  4646. %"mm / dd / yy" 
  4647.     m = 
  4648. m <> 2
  4649. "31,28,31,30,31,30,31,31,30,31,30,31"
  4650.         y = 
  4651. k4 = 0 
  4652. k100 <> 0) 
  4653. k400 = 0)
  4654. pointerObj
  4655. "hand" 
  4656. dialPos
  4657. angle 
  4658. rotation 
  4659. dialMin 
  4660. dialMax 
  4661. startAngle 
  4662. endAngle 
  4663. angleRange 
  4664. value
  4665. syssuspendMessages 
  4666. coords 
  4667. "face" 
  4668. +)/2,\
  4669. angleFromPoint 
  4670. (((Atan2(y-cy,x-cx)+2.5*
  4671. )/(2*
  4672. ))*360) 
  4673.     LOCAL INT outValue
  4674. dialMove 
  4675. endDialMove 
  4676. )/2,\
  4677. (ctr,
  4678. dstart 
  4679. +360))
  4680. dend 
  4681. 3> 180
  4682. k360 > 
  4683. k360)
  4684. notifyAfter 
  4685. enddialMove 
  4686. numTics 
  4687. syssuspendmessages 
  4688. )/2,\
  4689. radius 
  4690. ) - (
  4691. ))/2 
  4692. tallTicSpacing 
  4693. )/360 * (2 * PI) - (PI / 2)
  4694. <= 10
  4695. curField 
  4696. curfield 
  4697. 500,200
  4698. centerPosition 
  4699. + ((1+sz*2) * 
  4700. + ((1+sz*2) * 
  4701. )*(i/
  4702. )), \
  4703. + ((1+sz) * 
  4704. + ((1+sz) * 
  4705. myNumTics 
  4706. mydialMax 
  4707. dialmin 
  4708. mydialMin 
  4709. myTallTicSpacing 
  4710. numtics 
  4711. myStartAngle 
  4712. myendAngle 
  4713. -- General 
  4714. handler.
  4715. -- Supports 
  4716. single 
  4717. -- Joseph Brick, Oct 93.
  4718. -- Notes about 
  4719. routine:
  4720. -- ToolBook allows unrestricted values 
  4721. the following 
  4722. . This 
  4723. b fully 
  4724. -- rotates these 
  4725. }. All other 
  4726. }are oriented along a 90 degree 
  4727. -- axis. 
  4728.  just moves 
  4729. }around 
  4730. Owithout
  4731. -- rotating their 
  4732. -- A note on storing polar coordinates: 
  4733. order 
  4734.  converts 
  4735. Cartesian 
  4736. -- (stored 
  4737. %integers) 
  4738. g (manipulated 
  4739. %real numbers),
  4740. When converted 
  4741. acan suffer
  4742. rounding errors 
  4743. {may become more 
  4744. skewed each
  4745. Iyou 
  4746. To avoid 
  4747. routines 
  4748. -- change 
  4749. shape 
  4750. its distance 
  4751. running 
  4752. option, 
  4753. will have 
  4754. reset the
  4755. Hsending 
  4756. storePolar 
  4757. -- Parameters:
  4758. -- obj:
  4759. Object 
  4760. be rotated.
  4761. Can use 
  4762. toolbook 
  4763. {. Required.
  4764. -- ctr:
  4765. which 
  4766. O. Default 
  4767. structInfo[]
  4768. xangle,yangle,radians,cx,cy,radAngle,MouseAngle,longestH,storedAngle
  4769. x,y,fp
  4770. Zstack v,vtemp,loc
  4771. Zgraphic curObj
  4772. myRotation 
  4773.     -- If 
  4774. xprovided, base 
  4775. b + (
  4776. b + (
  4777. a list 
  4778. objlist 
  4779. total 
  4780. vCount 
  4781. objCount 
  4782.     -- loop goes once 
  4783. curObjType 
  4784.         -- If 
  4785.         -- 
  4786. kover:
  4787. objList
  4788.             -- 
  4789. fsetable 
  4790. maliable 
  4791. isArcOrPie 
  4792. b + (
  4793. b + (
  4794. curVCount 
  4795.             -- Add 
  4796. {reference 
  4797.             -- 
  4798.             -- walk through 
  4799. current 
  4800. y distances 
  4801. -- find length 
  4802. vector:
  4803. undefined 
  4804. )x=0,y=0:
  4805. dx=0 
  4806. (dx,dy)
  4807. +(dy,dx)- (rot/360)*(2*
  4808. [vcount+i][1] 
  4809.     array 
  4810. fa row 
  4811.     -- Each 
  4812. stores a 
  4813.  vertice.
  4814. ns,cx,cy,
  4815. x,y,fp
  4816. O     supplied 
  4817. /360) * 2*
  4818. b + (
  4819. b + (
  4820. they 
  4821. already 
  4822. propsStored 
  4823. uprops 
  4824. I,ctr
  4825. section 
  4826. resets 
  4827.  repetition specified:
  4828.             -- 
  4829.             -- adjust 
  4830. Hnewangle, 
  4831. x,y coorinates:
  4832. countV 
  4833. curIndex 
  4834. ][2]+
  4835. 0][1]
  4836. x(j = 1 
  4837. (rd)*h 
  4838. f(rd)*h 
  4839. cxObj 
  4840. cyObj 
  4841. (rd)*h 
  4842. f(rd)*h 
  4843. iterate 
  4844. sized
  4845. sysSuspendMessages 
  4846. b(sz),
  4847. b(sz)
  4848. -- This message 
  4849. sent 
  4850. clicked 
  4851. changed 
  4852. Hsetting
  4853. -- tabMode.
  4854. Put code 
  4855. handler, 
  4856. -- on 
  4857. tabPressed tabNum
  4858. -- handles clicking on 
  4859. buttonClick
  4860.     -- test 
  4861. 9was 
  4862. Hchecking "obtype" userProperty
  4863.         -- each 
  4864. named "
  4865. ", N being 
  4866. tabname 
  4867. -- Changes which 
  4868. 9folder 
  4869. front.
  4870. It does 
  4871. Hmoving
  4872. U"mask"
  4873. -- Value 
  4874. zbetween 1 
  4875. tabs 
  4876. value
  4877.  < 1 
  4878.  > tabLimit()
  4879. "Cannot 
  4880. 9" && 
  4881.     -- moves 
  4882. visually
  4883.     -- appear 
  4884.  See sized 
  4885.  below 
  4886. adiagram
  4887. v + xpix(),
  4888.     -- stores 
  4889. a userproperty
  4890. myTabMode 
  4891.     -- sends 
  4892. notification 
  4893. -- The handlers 
  4894. resizing 
  4895. ,mode. --
  4896. -- Used 
  4897. %a constant.
  4898. Returns 
  4899. -- Note: 
  4900. you wish 
  4901. more 
  4902. , follow 
  4903. procedure:
  4904. -- Go 
  4905. duplicate one 
  4906. -- Rename that 
  4907. 9appropriately. (
  4908. instance would
  4909. -- be 
  4910. Tab7", 
  4911. thirteenth 
  4912. # be "Tab13").
  4913. -- Set its 
  4914. behind 
  4915. function 
  4916. reflect 
  4917. ZnumTabs() 
  4918. 9count
  4919. pageUnits given n 
  4920. pixels.
  4921. xPix n
  4922. sysPageUnitsPerPixel * n
  4923. yPix n
  4924. Tel * n
  4925. -- returns 
  4926. currently selected 
  4927. -- sets up 
  4928. height 
  4929. units.
  4930. tabHeight 
  4931. myTabHeight 
  4932. handled 
  4933. tabSpace 
  4934. myTabSpace 
  4935. arrangeTabs
  4936. valid parameter
  4937. "Must have 
  4938. )least 1 
  4939. "Can only 
  4940. /" && 
  4941.  && "
  4942.         -- cache 
  4943. {reference 
  4944. optimization.
  4945. 9"&i) 
  4946. i <= 
  4947.             -- 
  4948. hidden 
  4949. %they've 
  4950. xbeen
  4951.             -- receiving them 
  4952. # are 
  4953. "manual" 
  4954. myNumTabs 
  4955. myNumtabs 
  4956. resized 
  4957. Notice 
  4958. -- methodSent: 
  4959. used 
  4960. differentiate 
  4961. =messages
  4962. toolBook 
  4963. explicitly 
  4964. syssuspendmessages
  4965.  off toolbooks 
  4966. messaging, 
  4967. %we will be changing
  4968. stuff.
  4969. Without 
  4970. recursively
  4971.     -- calls itself over 
  4972. sysSuspendMessages 
  4973. thing 
  4974. has a 
  4975.  called 
  4976. 5,6 _________ 7,8
  4977. 3,4 |
  4978. | 9,10
  4979. 1,2 |____________| 11,12
  4980.         -- Here 
  4981. amap 
  4982.         -- 
  4983. goal here 
  4984. maintain 
  4985. shape 
  4986.         -- 
  4987. . (Otherwise 
  4988. gets 
  4989. stretchy.) Also, 
  4990.         -- 
  4991. should be 
  4992.         -- find 
  4993. how tall 
  4994. supposed 
  4995.         -- 
  4996. tabRef 
  4997.         -- 
  4998. tsection 
  4999. makes 
  5000. " corners
  5001.         -- 
  5002. Need 
  5003. be sure 
  5004.         -- 
  5005.  wide 
  5006. 4doing 
  5007. m"tabHighlight" 
  5008. B"tabLabel" 
  5009. h    (),
  5010. 8    () 
  5011.             -- 
  5012.             -- 
  5013. editor.
  5014. rectangular
  5015.     -- body 
  5016.         -- 
  5017. following condition 
  5018. triggered 
  5019. %a whole 
  5020. , even though their sizes 
  5021. So we must notify
  5022.  can 
  5023. themselves.
  5024. xarranged 
  5025.         -- 
  5026. 9"&i) 
  5027.         -- don't bother arranging 
  5028.         -- 
  5029. x    on 
  5030. -- assures 
  5031.     aligned 
  5032. spaced evenly.
  5033. anchor 
  5034. "tab1" 
  5035. where 
  5036. order
  5037. xPos 
  5038. bp - 
  5039. b(ts,0)
  5040. through remaining 
  5041. place
  5042.         -- 
  5043. 9"&i) 
  5044. ()+ts
  5045.         -- 
  5046.         -- now 
  5047. tbit 
  5048. masking 
  5049. others.
  5050. bchecks 
  5051. x(e.g., 
  5052. just 
  5053. moved 
  5054. tname 
  5055. 9" & 
  5056. above 
  5057. adjustLines
  5058. curField 
  5059. M"&i) 
  5060. curLine 
  5061. curfield
  5062. b + (
  5063. selectedChapter 
  5064. value
  5065. chapterRef 
  5066. )"&i) 
  5067. pageID 
  5068. middleGray()
  5069. lightGray
  5070. midspot 
  5071. b + (
  5072. m"joiner"-- 
  5073. topicTree(v) 
  5074.         -- you will probably want 
  5075. modify 
  5076. the following 
  5077.         -- error handling execpt "
  5078. FALSE
  5079. "Couldn't navigate 
  5080. " && 
  5081. topicCount 
  5082. textlineCount(
  5083. Nexist 
  5084. curtopicField 
  5085. M"&i) 
  5086. extractName(t)
  5087. M"&i) 
  5088. U"1" 
  5089. plast 
  5090. U"bracket" 
  5091. k2 = 0
  5092. p1 + (
  5093. y2 + 1) 
  5094. 240,63.5,2.1875
  5095. values 
  5096. table 
  5097. contents
  5098. -- e.g. "
  5099. makeOutline 
  5100. tableOfContents 
  5101. "outline""
  5102. ZtopicList,curChapterField
  5103. chapterCount 
  5104. "&i) 
  5105. "chapter1" 
  5106. keyEnter
  5107. parseFileName 
  5108. checkLinks
  5109. fileExists(
  5110. acceptFile 
  5111. = -18
  5112. seperatePath(
  5113.             path = 
  5114. drive = getCurrentDrive()
  5115. setCurrentDirectory(
  5116. 0&":"&
  5117. update 
  5118. , TRUE
  5119. <> "\"
  5120. setCurrentDrive(
  5121. getCurrentDirectory(
  5122. <> ".\"
  5123. , FALSE
  5124.     sendnotifyBefore selectFile "", 
  5125. uncheckLinks
  5126. o= default
  5127. , directoryChange
  5128. updateDirectoryInfo 
  5129. &":\"& 
  5130. updateFileInfo 
  5131. &":\"& 
  5132. , confirm    
  5133. "*.*"
  5134.  pathAndFile
  5135. ZSTRING fileName
  5136. & <> ".."
  5137. x"\" 
  5138. x":") 
  5139.  = ".\"
  5140. getFileAttributes(
  5141.     linkDLL sysToolBookDirectory & "tb40dos.dll"
  5142.         INT 
  5143.     unlinkDLL 
  5144. ry & "
  5145. notifyAfter 
  5146. --stub 
  5147. keep 
  5148. causing ES 
  5149. no handler
  5150. buildcal d, m, y
  5151. wrkday = weekDay(1, m, y)
  5152. "days" = NULL
  5153.     resetObj = 
  5154. LIGHTGRAY
  5155. .BLACK
  5156. ;RAISED
  5157. counter = 
  5158. daysInMonth(m)
  5159. i = d
  5160. ;INSET
  5161. KGREEN
  5162. " && QUOTE & 
  5163. displayDate m, y
  5164. %"M" 
  5165. comboBox "calMonth" = m
  5166. Year" = y
  5167.  d, m, y
  5168. SYSTEM leapyear
  5169. LOCAL mfactor, cfactor
  5170. day1, yr
  5171. yr = 
  5172. leapYear = isLeapYear(y)
  5173. G = "034025036146"
  5174. ^ = "144025036146"
  5175. y >= 1900 
  5176. y <= 1999
  5177. y >= 2000 
  5178. y <= 2099
  5179. y >= 1800 
  5180. y <= 1899
  5181. y >= 1700 
  5182. y <= 1799
  5183. y >= 2100 
  5184. y <= 2199
  5185. (yr + (yr 
  5186. y4) + 
  5187.  + d + 
  5188. m <> 2
  5189. "31,28,31,30,31,30,31,31,30,31,30,31"
  5190. -- returns the weekday 
  5191. beyond 1/1/1700: 
  5192. -- note: requires full 
  5193. . Example: 
  5194. "1/1/1995")
  5195. -- also 
  5196. ) function below
  5197. dayOfWeek pdate
  5198. aa list out 
  5199. %"m,d,y" 
  5200. "m/d/y"
  5201. following 
  5202. each month) 
  5203.  that have passed 
  5204. "0,31,59,90,120,151,181,212,243,273,304,334" 
  5205. numdays 
  5206. elapsed since 1/1/1700 
  5207. (y-1700) 
  5208. y4-(y-1700) 
  5209. y100 +(y-1600) \
  5210. y400 + 365 * (y - 1700) + 
  5211. o+ d -1 
  5212. m <= 2 
  5213. k7 +1
  5214. "Sunday,Monday,Tuesday,Wednesday,Thursday,Friday,Saturday" 
  5215. -- Returns TRUE 
  5216. , FALSE 
  5217. -- NOTE: 
  5218. fuction 
  5219. a four digit 
  5220.  Find 
  5221. 1992 
  5222. (1992)
  5223. k4 = 0 
  5224. k100 <> 0) 
  5225. k400 = 0))
  5226. notifyAfter 
  5227.     -- initialize
  5228. buttonClick 
  5229. B"today" 
  5230. sortSelf
  5231. ZARRAY dataArray[]
  5232. ZSTRING sortedText
  5233. array
  5234.     fill 
  5235. B] order
  5236. quickSort 
  5237.     -- convert 
  5238. dimensions(
  5239. i] & CRLF 
  5240. trailing 
  5241.     -- update 
  5242. o= default
  5243. -- The 
  5244. tthree handlers 
  5245. aup a Standard recursive QuickSort.
  5246. -- Keep 
  5247. mind that arrays are passed 
  5248. Hreference, 
  5249. Hvalue.
  5250. fArray[] 
  5251. 4s_noSwap
  5252. quickSrt 
  5253. ), 1, 
  5254. dlo, hi
  5255. hi > lo 
  5256. j, lo, ((lo+hi) 
  5257. (lo+1) 
  5258. i] < 
  5259. s_noswap
  5260. quicksrt 
  5261. , lo, 
  5262. +1,hi
  5263. Ztemp
  5264. -- use 
  5265. inserting a single 
  5266. U. Will maintain 
  5267. insertLine newLine
  5268. insertLineAux(
  5269. -- inserts 
  5270. txt, maintaining 
  5271. -- works only 
  5272. already 
  5273. ending 
  5274. ZinsertSpot
  5275. midPoint 
  5276. middleLine 
  5277.             -- 
  5278. looking 
  5279. )values less than current 
  5280.             -- 
  5281. Kgreater 
  5282.             -- 
  5283. exists
  5284.  > tlc
  5285. 4ARRAY STRING itemArray[]
  5286. ZWORD itemNumber, stringLength
  5287. asure the array 
  5288. initialized
  5289. \1] = 
  5290.         sendnotifyBefore 
  5291. "index"
  5292. Zkey so 
  5293. placed 
  5294.     --lock 
  5295. screen 
  5296. speed 
  5297. closest match
  5298. = TRUE
  5299.     --cache 
  5300. so I don't have 
  5301. zso many property lookups.
  5302.     --store 
  5303. length 
  5304. current 
  5305. we are searching
  5306.     numberItems = dimensions(
  5307. there 
  5308. I want 
  5309. only one 
  5310. za binary 
  5311.         --begining 
  5312. lphabetic 
  5313. that letter
  5314. binarySearch(
  5315.             --
  5316. 8we found 
  5317. selectedTextlines 
  5318. more 
  5319. sequential 
  5320.             --
  5321. currently 
  5322. Uwhich 
  5323.             --
  5324. element 
  5325. less than 
  5326.             --
  5327. sequentially 
  5328. "down" 
  5329.             --
  5330. greater 
  5331. equal 
  5332. we reach 
  5333.  + 1] < 
  5334. we dropped out 
  5335. because 
  5336. strings 
  5337. zshould be incremented so 
  5338. hilighted 
  5339. above 
  5340.  + 1] = 
  5341.             --
  5342.             --
  5343. "up" 
  5344.             --
  5345. ] >= 
  5346.  > 1 
  5347.  - 1] >= 
  5348.             --
  5349. our "
  5350. = FALSE
  5351. upper 
  5352. lower 
  5353. starting point 
  5354.     currentPosition = (
  5355. DIV 2
  5356.     --keep narrowing 
  5357. Zeither a 
  5358. no elements
  5359. we throw 
  5360. <" half 
  5361.  below 
  5362. exact 
  5363.  was 
  5364. need 
  5365. further 
  5366. where 
  5367.     --we 
  5368. Y    we 
  5369. matches 
  5370.     --we find a 
  5371. "up" 
  5372. - 1] 
  5373. buttonClick
  5374.     linkDLL "gdi"
  5375.         INT setBKMode(WORD,
  5376.  CreateFontIndirect(POINTER)
  5377. ) Selectobject(
  5378. OTextout(
  5379. ^,STRING,
  5380. nDeleteObject(
  5381. user"
  5382.  GetDC(
  5383.  ReleaseDC(
  5384. kernel"
  5385.  GlobalAlloc(
  5386. DWORD)
  5387.  GlobalLock(
  5388.  GlobalUnlock(
  5389.  GlobalFree(
  5390. sysToolBookDirectory & "tb40win.dll"
  5391.  clientFromPage(
  5392.     -- create the font 
  5393. Windows
  5394. ZhLogFont,pLogFont, hFont, hPreviousFont, hDC, angle
  5395. 66, 64)
  5396.     -- see pg 307 
  5397. o SDK Programmer's Reference, vol. 3
  5398.     -- (
  5399. entry 
  5400. LOGFONT structure)
  5401. .(0, 
  5402. 0) -- 
  5403. Rheight, required -16 works 
  5404. but high resolution, large fonts.
  5405.     -- 2 
  5406. width, default 0
  5407.     -- 4 
  5408. escapement 
  5409. below
  5410.     -- 6 
  5411. ignored
  5412. .(8, 
  5413. 0) -- weight, 500 = medium, 0 = don't care
  5414.     -- 10 
  5415.     -- 11 
  5416.     -- 12 
  5417.     -- 13 
  5418. )(14, 
  5419. 2) -- output precision
  5420.     -- 15 
  5421. clip 
  5422.     -- 16 
  5423. quality
  5424. )(17, 
  5425. 0) -- pitch 
  5426. family, 32 
  5427. Swiss, 0 
  5428. 1(18, 
  5429. ) -- 
  5430. faces will 
  5431. . Here we use Arial, most other TrueType
  5432.     -- let 
  5433.  know who we are
  5434.     hDC = 
  5435. sysClienthandle)
  5436. setBkMode(
  5437.     -- force repaint
  5438. pageUnitsToClient(
  5439.     xPos = 
  5440.     yPos = 
  5441. 3600 
  5442. .( 4, 
  5443. , hDC)
  5444.     -- deal 
  5445. fdll refCount
  5446.     unlinkDLL "
  5447. y & "
  5448. notifyBefore 
  5449. PlotValues 
  5450. MaxBars 
  5451. >) - 1
  5452. !) > 
  5453. defValues 
  5454. NumBars 
  5455. vMin 
  5456. vMax 
  5457. bnds 
  5458. plotHeight 
  5459. .) / 2
  5460. < -1 
  5461.         -- Normalize values so they fit 
  5462. chart
  5463. normConst 
  5464.     -- Now 
  5465.     -- Compute bar width
  5466. barWeight 
  5467. / 100
  5468. barWidth 
  5469. b(30, 
  5470. blankWidth 
  5471. } - (
  5472. )) / (
  5473. oldLock 
  5474.     -- Note: Object 1 
  5475. always a "
  5476. defining 
  5477. (i <= 
  5478. x, y1, x + 
  5479. plotValues
  5480. PlotWeight 
  5481. isNumber(
  5482.  >= 1 
  5483.  <= 360
  5484.         myPlotWeight 
  5485. plotWeight
  5486. PlotColors 
  5487.     myPlotColors 
  5488. H,L,S
  5489. plotColors
  5490. -- Automatically 
  5491. the "frame" used 
  5492. reference
  5493. showframe 
  5494. notifyBefore 
  5495. showFrame
  5496. -- This 
  5497. could be considerably optimized 
  5498. ]arrays
  5499. typing the 
  5500. PlotValues 
  5501. oldCursor 
  5502. MaxLines 
  5503. >) - 1
  5504. MaxPoints 
  5505. >) / 2
  5506. cTextLineCount(
  5507. g) > 
  5508. defValues 
  5509. NumLines 
  5510. vMin 
  5511. vMax 
  5512. vValLine 
  5513. NumPoints 
  5514. bnds 
  5515. plotHeight 
  5516. &) / 2
  5517. < -1 
  5518.         -- Normalize values so they fit 
  5519. chart
  5520.     -- Now 
  5521.     -- Compute 
  5522. between 
  5523.  points
  5524. xIncrement 
  5525. ) / (
  5526. oldLock 
  5527.     -- Note: Object 1 
  5528. always a "
  5529. defining 
  5530. (i <= 
  5531. linObj 
  5532. linVertices 
  5533. maxPoints
  5534. j <= 
  5535. y - (
  5536. (j-1) * 2 + 1
  5537. plotValues
  5538. PlotWeight 
  5539. isNumber(
  5540.  >= 1 
  5541.  <= 100
  5542.         myPlotWeight 
  5543. j(8, 
  5544. b(1, 
  5545. y17))
  5546. plotWeight
  5547. PlotColors 
  5548.     myPlotColors 
  5549. H,L,S
  5550. -- Automatically 
  5551. "frame" used 
  5552. reference
  5553. showframe 
  5554. notifyBefore 
  5555. showFrame
  5556. PlotValues 
  5557. MaxPies 
  5558. defValues 
  5559. NumPies 
  5560. vtotal 
  5561. FullPie 
  5562. vTotal > 1
  5563.         -- Normalize values so they 
  5564. 1 (100%)
  5565.         -- 
  5566. fill pieChart
  5567.     -- Now 
  5568. bnds 
  5569. xCenter 
  5570. yCenter 
  5571. vRadius 
  5572. e) / 2
  5573. oldLock 
  5574.         obj = 
  5575. (i <= 
  5576. CumulVal 
  5577. zeroAngle 
  5578. StartAngle 
  5579. PtStart 
  5580. ") * 
  5581. 6) * 
  5582. ptStart 
  5583. startAngle 
  5584. CumulAngle 
  5585. )) * 
  5586. A) * 
  5587. vVertices 
  5588. newVertices 
  5589. prevPie
  5590. plotValues
  5591. PlotOrigin 
  5592. isNumber(
  5593.  >= 0 
  5594.  <= 360
  5595.         myPlotOrigin 
  5596. / 180)
  5597. plotOrigin
  5598. PlotColors 
  5599.     myPlotColors 
  5600. H,L,S
  5601. plotColors
  5602. PlotValues 
  5603. MaxPies 
  5604. ) > 2
  5605. defValues 
  5606. NumPies 
  5607. vtotal 
  5608. FullPie 
  5609. vTotal > 1
  5610.         -- Normalize values so they 
  5611. 1 (100%)
  5612.         -- 
  5613. fill pieChart
  5614.     -- Now 
  5615. oldLock 
  5616. pie1 
  5617. pie2 
  5618. bnds 
  5619. xCenter 
  5620. yCenter 
  5621. vRadius 
  5622. |) / 2
  5623. CumulVal 
  5624. zeroAngle 
  5625. StartAngle 
  5626. PtStart 
  5627. 2) * 
  5628. ptStart 
  5629. startAngle 
  5630. CumulAngle 
  5631. )) * 
  5632. A) * 
  5633. vVertices 
  5634. newVertices 
  5635. prevPie
  5636. explodeBy 
  5637. explodeAngle 
  5638. ) * (
  5639.  / 2))) + 
  5640. (ExplodeAngle), -(
  5641. plotValues
  5642. PlotOrigin
  5643. result 
  5644. * 180 / 
  5645. ) > 1
  5646. isNumber(
  5647.  >= 0 
  5648.  <= 360
  5649. / 180
  5650. force redraw
  5651. PlotColors 
  5652.     myPlotColors 
  5653. H,L,S
  5654. plotColors
  5655. --    Tim Pearson, Asymetrix    1/94
  5656. customEdit
  5657. 4            s_answerMessages
  5658. Z            init, box
  5659.     linkDLL sysToolBookDirectory & "tb40dlg.dll"
  5660.         STRING    DialogCallback        (WORD,
  5661. &     GetValue            (
  5662. ?SetValue            (
  5663. YGetnListBoxSelection(
  5664. xGetControlText        (
  5665.         INT        SetControlText        (
  5666. -endTBKDialog        (
  5667.  = ",G3607,Answers:
  5668. ,S3603,
  5669. Send When Chosen:
  5670. LISTBOX answers,L3596,TRUE" & CRLF &
  5671. "FALSE
  5672. EDIT message,E3604,
  5673. BUTtoN ok,B1,
  5674. J,B3606,
  5675.     box = "524480,6,25,25,186,74,,,
  5676.  True 
  5677. False,8,MS Sans Serif,,2,3,130,55,3607,1342177287,128,
  5678. ,0,,5,32,125,7,3603,1342177280,130,
  5679. 5,13,49,21,3596,1352728577,131,,0,
  5680. 5,42,124,11,3604,1350631552,129,,0,ok,136,7,44,12,1,1342242817,128,OK,0,
  5681. J,136,22,44,12,3606,1342242816,128,Cancel,0"
  5682. "listBox 
  5683. (windowhandle 
  5684. e,box,
  5685. Bok") = 
  5686.     unlinkDLL 
  5687. y & "
  5688. TBKDialogInit    hDlg,ctrlId,hWnd,msg,ctrlName
  5689. SetnListBoxSelection(
  5690. TBKDialogCommand    
  5691. c = "
  5692. z = 1
  5693.  = 512
  5694.  = "Button 
  5695. 0) -- 0 = 
  5696. notifyBefore 
  5697. --    Tim Pearson, Asymetrix 94
  5698. customEdit
  5699. 4            s_answerMessages
  5700. Z            init, box
  5701.     linkDLL sysToolBookDirectory & "tb40dlg.dll"
  5702.         STRING    DialogCallback        (WORD,
  5703. &     GetValue            (
  5704. ?SetValue            (
  5705. YGetnListBoxSelection(
  5706. xGetControlText        (
  5707.         INT        SetControlText        (
  5708. -endTBKDialog        (
  5709.  = ",G3607,Answers:
  5710. ,S3603,
  5711. Send When Chosen:
  5712. LISTBOX answers,L3596,TRUE" & CRLF &
  5713. "FALSE
  5714. EDIT message,E3604,
  5715. BUTtoN ok,B1,
  5716. J,B3606,
  5717.     box = "524480,6,25,25,186,74,,,
  5718.  True 
  5719. False,8,MS Sans Serif,,2,3,130,55,3607,1342177287,128,
  5720. ,0,,5,32,125,7,3603,1342177280,130,
  5721. 5,13,49,21,3596,1352728577,131,,0,
  5722. 5,42,124,11,3604,1350631552,129,,0,ok,136,7,44,12,1,1342242817,128,OK,0,
  5723. J,136,22,44,12,3606,1342242816,128,Cancel,0"
  5724. "listBox 
  5725. (windowhandle 
  5726. e,box,
  5727. Bok") = 
  5728.     unlinkDLL 
  5729. y & "
  5730. TBKDialogInit    hDlg,ctrlId,hWnd,msg,ctrlName
  5731. SetnListBoxSelection(
  5732. TBKDialogCommand    
  5733. ` = "
  5734. w = 1
  5735.  = 512
  5736.  = "Button 
  5737. 0) -- 0 = 
  5738. notifyBefore 
  5739.     --Save the initial 
  5740. Bthat was pressed 
  5741. compare 
  5742. }handler 
  5743. --toggle 
  5744. Akeyboard so only one 
  5745. inverted.
  5746. 4initialButton, initialButtonClass
  5747. "input"
  5748. txClassName 
  5749. >= "ALPHA"
  5750. toggleInvert 
  5751. >, "NON-
  5752. --Check 
  5753. released over a 
  5754. different 
  5755. a buttonClick 
  5756. FToolBook will 
  5757. , invertedButton, invertedButtonClass
  5758. objectFromPoint(
  5759. 9s = "
  5760. Us = "
  5761. FALSE
  5762. nlabel 
  5763. sysPageUnitsPerPixel), -(
  5764. el * 5)
  5765. --As 
  5766. mouse 
  5767. drug around 
  5768. Bdown 
  5769. buttons 
  5770. cursor passes 
  5771. them.
  5772. Roff 
  5773. isChild(
  5774. l), -(
  5775. l * 5)
  5776. {so I always 
  5777. }pairs.
  5778. labelText 
  5779. = "Shift"
  5780. = "Ctrl"
  5781. = "Alt"
  5782. = "Caps Lock"
  5783. = "Tab"
  5784. , TRUE 
  5785. = "Enter"
  5786. keyEnter 
  5787. = "<-"
  5788. notifyAfter 
  5789. --This 
  5790. takes care 
  5791. popping up 
  5792. inverting 
  5793. targetObject.
  5794. toggleObject, class
  5795. l), -(
  5796. l * 5)
  5797. l * 5)
  5798. --returns 
  5799. objectInQuestion 
  5800. a child 
  5801. parentInQuestion
  5802. acting 
  5803. The enter 
  5804. special because 
  5805. --parts.
  5806. Zstack bnds,mouseOffset
  5807. X"user"
  5808. getsystemmetrics(
  5809. * has swapped 
  5810. I buttons.
  5811. =23) >0
  5812. leftMouseButton 
  5813. targ 
  5814.         newloc = 
  5815. newLoc <> 
  5816. objectFromPoint(
  5817. "base" 
  5818. dropTarget 
  5819. checkObject 
  5820. oorigLoc
  5821. labelPosition 
  5822. value
  5823. notifyBefore initQuiz
  5824. moved
  5825. -- 13,14 
  5826. -- 11,12 
  5827.  9,10
  5828. sized
  5829. pupp 
  5830. syspageunitsperpixel
  5831. pwidth 
  5832.  * 10
  5833. pheight 
  5834.  * 10
  5835. topLeft 
  5836. mask 
  5837. topRight 
  5838. U"point" 
  5839. bottomLine 
  5840. sz > 
  5841. sz > 
  5842. syssuspendmessages 
  5843. distToP 
  5844. sz - 
  5845. Zstack bnds,mouseOffset
  5846. X"user"
  5847. getsystemmetrics(
  5848. * has swapped 
  5849. I buttons.
  5850. =23) >0
  5851. leftMouseButton 
  5852. targ 
  5853.         newloc = 
  5854. newLoc <> 
  5855. objectFromPoint(
  5856. "base" 
  5857. dropTarget 
  5858. checkObject 
  5859. oorigLoc
  5860. labelPosition 
  5861. value
  5862. notifyBefore initQuiz
  5863. moved
  5864. -- 13,14 
  5865. -- 11,12 
  5866.  9,10
  5867. sized
  5868. pupp 
  5869. syspageunitsperpixel
  5870. pwidth 
  5871.  * 10
  5872. pheight 
  5873.  * 10
  5874. topLeft 
  5875. mask 
  5876. topRight 
  5877. U"point" 
  5878. bottomLine 
  5879. sz > 
  5880. sz > 
  5881. syssuspendmessages 
  5882. distToP 
  5883. sz - 
  5884. Zstack bnds,mouseOffset
  5885. X"user"
  5886. getsystemmetrics(
  5887. * has swapped 
  5888. I buttons.
  5889. =23) >0
  5890. leftMouseButton 
  5891. targ 
  5892.         newloc = 
  5893. newLoc <> 
  5894. objectFromPoint(
  5895. "base" 
  5896. dropTarget 
  5897. checkObject 
  5898. oorigLoc
  5899. labelPosition 
  5900. value
  5901. notifyBefore initQuiz
  5902. moved
  5903. -- 13,14 
  5904. -- 11,12 
  5905.  9,10
  5906. sized
  5907. pupp 
  5908. syspageunitsperpixel
  5909. pwidth 
  5910.  * 10
  5911. pheight 
  5912.  * 10
  5913. topLeft 
  5914. mask 
  5915. topRight 
  5916. U"point" 
  5917. bottomLine 
  5918. sz > 
  5919. sz > 
  5920. syssuspendmessages 
  5921. distToP 
  5922. sz - 
  5923. nearestPUPP val,xpix
  5924. sliderPos 
  5925. value
  5926. Zscale
  5927. sliderMin 
  5928. sliderMax 
  5929. mysliderPos 
  5930. sysPageUnitsPerPixel
  5931. sliderBounds 
  5932. "bar" 
  5933. nearestPupp(
  5934. thumb 
  5935. oldP 
  5936. percentage 
  5937. newP 
  5938. x1 + (x2-x1-w)*
  5939. sliderMove 
  5940. adjustNumbers
  5941. numTics 
  5942. otallTicSpacing
  5943. numFields 
  5944. // ts
  5945. j) / 
  5946. 2),10)
  5947. curfield 
  5948. xCenter 
  5949. U(i*ts) 
  5950. ),10)+1 
  5951.  && "
  5952. invalid."
  5953. mySliderMax 
  5954.  && "
  5955. mySliderMin 
  5956. high 
  5957. U"0" 
  5958. U"0" 
  5959. myTallTicSpacing 
  5960.  > 50 
  5961. must be a 
  5962.  between 1 
  5963. thumbwidth 
  5964. U"base" 
  5965. (x2 - x1) / 
  5966. leftMost 
  5967. curLine 
  5968. curline 
  5969. myNumTics 
  5970. notifyBefore 
  5971. endSliderMove
  5972. clocktime 
  5973.     totalSecs = 
  5974. ototalTime
  5975.     -- test 
  5976. Ihas changed
  5977. oldTime 
  5978. curTime 
  5979. coords 
  5980. "face" 
  5981. +)/2,\
  5982. radius 
  5983. X) - (
  5984. d))/2
  5985. secsAngle 
  5986. "sweep" 
  5987. handVertices(
  5988. ,angle,
  5989. j(.99,
  5990. ") * (2 * PI) - (PI / 2))), \
  5991. j(.99,
  5992. Y) * (2 * PI) - (PI / 2))),\
  5993. f(0 - (PI / 2))),\
  5994. (0 - (PI / 2)))
  5995. myTotalTime 
  5996. value
  5997. timeFormat 
  5998. adjustment 
  5999. "minutes"
  6000. "hours"
  6001. xa valid 
  6002. myRound(
  6003. *.25) 
  6004. "quarter" 
  6005. *.5) 
  6006. "half" 
  6007. =num*.75) 
  6008. "threeQuarters" 
  6009. "zero" 
  6010. "(" & 
  6011. & ")"
  6012. zval 
  6013. %".0"
  6014. %".00"
  6015. timeLimit 
  6016. totaltimeLimit 
  6017. clockTime 
  6018. startTime
  6019. timeStart 
  6020. timeGetTime()
  6021. notifyBefore 
  6022. - qs) 
  6023. y1000
  6024. b(0,ct)
  6025. ct <= 0
  6026. endtime
  6027.     -- stub, so 
  6028. nothing handles message, we don't 
  6029. notifyAfter 
  6030. X"mmsystem"
  6031. categories 
  6032. the "prompt" 
  6033. , selecting
  6034.  current 
  6035. Mbelongs 
  6036. that 
  6037. -- category. (
  6038. Ncan 
  6039. more than one 
  6040. myID 
  6041. myTopic 
  6042. label 
  6043. "Choose 
  6044. M" && 
  6045. ZmainStruct[][]
  6046. categoryStruct 
  6047. fref 
  6048. arraySize 
  6049. dimensions(
  6050. si][1] 
  6051.         -- 
  6052. o i, 
  6053.         -- 
  6054. selectedTextLine 
  6055. itemOffset(
  6056. i][2]) > 0
  6057.         -- 
  6058. kunless we are on 
  6059. selectedTextlines 
  6060. -- update 
  6061. compileCategories
  6062. selectedTextLines 
  6063.     -- walk through 
  6064.         -- 
  6065. ) > 0
  6066.             -- 
  6067. xalready assigned, 
  6068. i][2])=0
  6069. i][2]
  6070.             -- 
  6071.             -- exists
  6072. itemLoc 
  6073. i][2])
  6074. i][2]
  6075.  structure
  6076. Show-off
  6077. label
  6078. Show-off
  6079. RotateText
  6080. tbk_wid_name
  6081. RotateText
  6082. Click me and watch me rotate
  6083. leavePage
  6084. This widget is a good example of using Windows directly from ToolBook to do something that is otherwise not possible in ToolBook.
  6085. While it isn't usually necessary, you can link directly to Windows from ToolBook. This example takes advantage of a Windows capability not built into ToolBook. 
  6086. ASYM_BeenHere
  6087. Simple Bar Chart
  6088. label
  6089. Animate
  6090. Simple Bar Chart
  6091. Use this widget to show up to 6 values. The buttons on this page all exercise the widget by setting its properties to the desired values.
  6092. Set plotValues of the group to two numbers. The numbers will be automatically normalized to add up to 100%. Set plotweight  to a number between 1 and 100. Set plotColors of the group to HLS color values or color names for the bars.
  6093.  Example: set plotColors of group "Chart One" to "green, 78,56,35""ample: set plotColors of group "Chart One" to "green, 78,56,35" of group "Chart One" to "green, 78,56,35"""5, 150
  6094. Note: The chart gets redrawn with the current values when you change the plotOrigin.
  6095. Set plotColors  of the group to HLS color values or color names for the two slices.
  6096.  Example: set plotColors of group "Chart One" to "green, 78,56,35"et plotColors of group "Chart One" to "green, 78,56,35"""ith the current values when you change the plotOrigin.
  6097. Set plotColors  of the group to HLS color values or color names for the two slices.
  6098.  Example: set plotColors of group "Chart One" to "green, 78,56,35"
  6099. Chart one
  6100. 1,0.715565031982942,0.526226012793177
  6101. defValues
  6102. Weights
  6103. barWeight
  6104. BarChart
  6105. tbk_wid_name
  6106. PlotValues
  6107. PlotWeight
  6108. PlotColors
  6109. tbk_wid_props
  6110. tbk_wid_values
  6111. myPlotWeight
  6112. magenta,cyan,yellow,red,blue,green
  6113. myPlotColors
  6114. plotValues
  6115. chart one
  6116. buttonUp
  6117. plotValues 
  6118. "chart one" 
  6119. 1,2,3,4,5,6
  6120. plotValues
  6121. chart one
  6122. buttonUp
  6123. plotValues 
  6124. "chart one" 
  6125. 2345, 1678, 1234
  6126. plotColors
  6127. blue,red,green,magenta,cyan,yellow
  6128. chart one
  6129. buttonUp
  6130. plotColors 
  6131. "chart one" 
  6132. Color Scheme 1
  6133. plotColors
  6134. magenta,cyan,yellow,red,blue,green
  6135. chart one
  6136. buttonUp
  6137. plotColors 
  6138. "chart one" 
  6139. Color Scheme 2
  6140. .'+    +F
  6141. .'+    +F
  6142. plotValues
  6143. plotValues
  6144. chart one
  6145. oldCursor
  6146. plotValues
  6147. tempVals
  6148. chartObj
  6149. buttonUp
  6150. oldCursor 
  6151.     -- This example recycles the current data 
  6152. shown 
  6153.     -- chart 
  6154. {. In a real 
  6155.  , you would 
  6156.     -- some other 
  6157.     -- Get 
  6158. [bar height, store 
  6159. display 
  6160. minimum
  6161.     chartObj = 
  6162. yone"
  6163.     plotValues = 
  6164.     barCount = 
  6165. tempVals 
  6166.     -- Now 
  6167. animation
  6168.         v = 
  6169. v < 0
  6170.             incVal = -0.1
  6171. Animate
  6172. plotValues
  6173. chart one
  6174. buttonUp
  6175. plotValues 
  6176. "chart one" 
  6177. .1, -.5
  6178. plotWeight
  6179. Chart one
  6180. buttonUp
  6181. plotWeight 
  6182. "Chart one" 
  6183. Bar Weight::
  6184. enterPage
  6185. author
  6186. reader
  6187. Values 1,2,3,4,5,6
  6188. Values .1, -.5
  6189. Values 2345, 1678, 1234
  6190. Color Scheme 1
  6191. Color Scheme 2
  6192. ASYM_BeenHere
  6193. Simple Line Chart
  6194. label
  6195. ASYM_BeenHere
  6196. Simple Line Chart
  6197. This widget plots up to 6 series of up to 25 points each. Just set its plotValues property to the data you want. Other properties control appearance details..o
  6198. Set plotValues of the chart to a string containing as many as 6 textlines containing up to 25 numbers each. Values should be floating point numbers between -1 and 1, or any number. If a value exceeds -1 or 1, the values in the series will be normalized so that the highest one is assumed to be as high as the chart will allow. You can use any number of values but at least 2 and no more than 25 in any textline of the data.
  6199. Example: set plotValues of group "Chart One" to "100,200,400,200" & CRLF & "123,345,523,234"
  6200. Set plotWeight of the group to a relative thickness for the lines. This should be a number between 1 and 100.
  6201. Example: set plotWeight of group "Chart One" to 60
  6202. Note: The chart gets redrawn with the current values when you change the plotWeight.
  6203. Set plotColors of the group to up to 6 HLS color values or color names.
  6204. Example: set plotColors of group "Chart One" to "green, magenta, red, blue, 34,56,75, 78,56,35"
  6205. The line chart widget does not include marker lines. However, the bounds of the widget effectively define the plotting area, and the y = 0 line is a virtual horizontal line that goes exactly through the middle of the widget. The plotting area gets automatically hidden or shown when switching from reader to author level.
  6206. Chart one
  6207. barWeight
  6208.  -26, -33, 61, 29, 77, 81, -94, -16, -10
  6209.  45, -15, -11, -15, 27, -51, -73, -7, -11
  6210.  -45, -99, 90, 44, -80, 90, 52, 38, -99
  6211.  37, 10, -9, -99, 47, -13, -82, -79, 77
  6212.  -46, 81, -59, -7, -21, -22, 63, -13, -97
  6213. defValues
  6214. LineChart
  6215. tbk_wid_name
  6216. PlotValues
  6217. PlotWeight
  6218. PlotColors
  6219. tbk_wid_props
  6220. tbk_wid_values
  6221. magenta,cyan,yellow,red,blue,green
  6222. myPlotColors
  6223. myPlotWeight
  6224. Color Scheme 1
  6225. plotColors
  6226. blue,red,green,magenta,cyan,yellow
  6227. chart one
  6228. buttonUp
  6229. plotColors 
  6230. "chart one" 
  6231. Color Scheme 1
  6232. Color Scheme 2
  6233. plotColors
  6234. magenta,cyan,yellow,red,blue,green
  6235. chart one
  6236. buttonUp
  6237. plotColors 
  6238. "chart one" 
  6239. Color Scheme 2
  6240. Plot random data
  6241. plotValues
  6242. chart one
  6243. data set 1
  6244. buttonClick
  6245. buttonClick
  6246. plotValues 
  6247. "chart one" 
  6248. "data 
  6249. Plot data shown below
  6250. Plot sin(x)
  6251. ,&H.&
  6252. plotValues
  6253. Chart one
  6254. buttonUp
  6255. Zdata
  6256. (i / 4) 
  6257. plotValues 
  6258. "Chart one" 
  6259. Plot y = sin(x) 
  6260. Data set 1
  6261. SetRandomData
  6262. SetRandomData
  6263. data 
  6264. numPoints 
  6265. (24)+ 1
  6266. numSets 
  6267. i > 1
  6268. CRLF 
  6269. (200) - 100
  6270. j > 1
  6271.  -26, -33, 61, 29, 77, 81, -94, -16, -10
  6272.  45, -15, -11, -15, 27, -51, -73, -7, -11
  6273.  -45, -99, 90, 44, -80, 90, 52, 38, -99
  6274.  37, 10, -9, -99, 47, -13, -82, -79, 77
  6275.  -46, 81, -59, -7, -21, -22, 63, -13, -97, -72, 35, -63, 50, -94, 95, -76, -50, -70 8, 84, -50, 49, 26, 91-91, -72, 27, 46, -13, 40, -63, -72, 51, 70
  6276.  -80, -60, -16, -1, 41, -32, -7, -82, 3, 70, 96, 76, 34, -61, -61, -65, -14, 0, -84, 31, -14, 55, 348, -41, 22, 50, 75, 83, 67, 22, -39
  6277.  57, -69, 9, 38, -21, 99, -79, -17, -94, 38, -48, -66, -54, -62, 73, 53, -90, -3, -88, 93
  6278. Randomize Data
  6279. AsetRandomData
  6280. data set 1
  6281. plot random data
  6282. buttonClick
  6283. buttonClick
  6284. "FALSE"
  6285. setRandomData 
  6286. "data 
  6287. B"plot 
  6288. Randomize the data
  6289. Line Weight
  6290. plotWeight
  6291. Chart one
  6292. buttonUp
  6293. plotWeight 
  6294. "Chart one" 
  6295. enterPage
  6296. author
  6297. reader
  6298. Pie Chart
  6299. label
  6300. color1
  6301. ASYM_BeenHere
  6302. Pie Chart
  6303. This pie chart widget can plot up to 6 different values. The various buttons on this page change properties of the widget.
  6304. Set plotValues of the group to up to 6 numbers. The numbers will be automatically normalized to add up to 100%. You can use any number of values but at least 2 and no more than 6 (to show more values, see below.) 
  6305. Example: set plotValues  of group "Chart One" to "1000, 2000, 4000, 2000"
  6306. Note that the chart will still be plotted correctly even if it is not perfectly round. However, since the size of the pies is calculated by angle, not by surface, this can lead to a distorted view of the data.
  6307. Set plotOrigin of the group to a value in degrees which must be a number from 0 to 360. 
  6308. Example: set plotOrigin  of group "Chart One" to 45
  6309. Note: The chart gets redrawn with the current values when you change the plotOrigin .
  6310. Set plotColors of the group to up to 6 HLS color values or color names.
  6311. Example: set plotColors of group "Chart One" to "green, magenta, red, blue, 34,56,75, 78,56,35"
  6312. To plot more than 6 values, select the group, double-click it to select one of the pie objects inside, and use the clipboard to copy and paste as many copies of the pie object as you need inside the group. Set the color of the pies as you go, or set the plotColors property to your liking. Note that adding pies to this widget will slow it down..
  6313. .'+    +F
  6314. .'+    +F
  6315. Chart One
  6316. plotOrigin
  6317. buttonUp
  6318. plotOrigin 
  6319. "Chart One" 
  6320. Chart One
  6321. Claude
  6322. authorName
  6323. startangle
  6324. false
  6325. fullpie
  6326. zeroAngle
  6327.  6083, 4186, 5092, 9511, 3934, 3375
  6328. defValues
  6329. 1540.5
  6330. vRadius
  6331. yCenter
  6332. 2287.5
  6333. xCenter
  6334. PieChart
  6335. tbk_wid_name
  6336. PlotValues
  6337. PlotOrigin
  6338. PlotColors
  6339. tbk_wid_props
  6340. tbk_wid_values
  6341. myPlotOrigin
  6342. magenta,cyan,yellow,red,blue,green
  6343. myPlotColors
  6344. plotValues
  6345. chart one
  6346. buttonUp
  6347. -%,    #>
  6348. buttonDoubleClick
  6349. plotValues 
  6350. "chart one" 
  6351. Zdata
  6352. (5) + 1
  6353.  6083, 4186, 5092, 9511, 3934, 3375
  6354. plotValues
  6355. chart one
  6356. buttonUp
  6357. buttonDoubleClick
  6358. plotValues 
  6359. "chart one" 
  6360. Zdata
  6361. (5) + 1
  6362. (10) 
  6363. 10,6,1,7,10
  6364. plotValues
  6365. chart one
  6366. buttonUp
  6367. buttonDoubleClick
  6368. plotValues 
  6369. "chart one" 
  6370. Zdata
  6371. (5) + 1
  6372. (10) / 10
  6373. %" 0.0"
  6374.  0.9, 0.9, 0.5, 0.6, 0.8, 0.2
  6375. chart one
  6376. plotOrigin
  6377. buttonUp
  6378. plotOrigin 
  6379. "chart one" 
  6380. chart one
  6381. plotOrigin
  6382. buttonUp
  6383. plotOrigin 
  6384. "chart one" 
  6385. chart one
  6386. plotOrigin
  6387. buttonUp
  6388. plotOrigin 
  6389. "chart one" 
  6390. chart one
  6391. plotOrigin
  6392. buttonUp
  6393. plotOrigin 
  6394. "chart one" 
  6395. chart one
  6396. plotOrigin
  6397. buttonUp
  6398. plotOrigin 
  6399. "chart one" 
  6400. plotColors
  6401. blue,red,green,magenta,cyan,yellow
  6402. chart one
  6403. buttonUp
  6404. plotColors 
  6405. "chart one" 
  6406. Color Scheme 1
  6407. plotColors
  6408. magenta,cyan,yellow,red,blue,green
  6409. chart one
  6410. buttonUp
  6411. plotColors 
  6412. "chart one" 
  6413. Color Scheme 2
  6414. color2
  6415. Exploding Pie
  6416. label
  6417. Exploding Pie
  6418. This pie chart shows two values only. One of the values gets plotted as an "exploded" wedge. The animation examples simply set properties of the widget.I
  6419. Set plotValues of the group to two numbers. The numbers will be automatically normalized to add up to 100%. The second number will be shown in the "exploded" slice.
  6420. Example: set plotValues of group "Chart One" to "10000,2000"
  6421. Note that the chart will still be plotted correctly even if it is not perfectly round. However, since the size of the pies is calculated by angle, not by surface, this can lead to a distorted view of the data.
  6422. Set plotOrigin of the group to a value in degrees which must be a number from 0 to 360, and a second number specifying the distance (in ToolBook units) by which to move the exploded slice. 
  6423. Example: set plotOrigin of group "Chart One" to 45, 150
  6424. Note: The chart gets redrawn with the current values when you change the plotOrigin.
  6425. Set plotColors of the group to HLS color values or color names for the two slices.
  6426.  Example: set plotColors of group "Chart One" to "green, 78,56,35""""
  6427. Chart One
  6428.     B    cE
  6429. Degree 45
  6430. explodeBy
  6431. Claude
  6432. authorName
  6433. startangle
  6434. false
  6435. fullpie
  6436. zeroAngle
  6437. Degree 0
  6438. defValues
  6439. 1540.5
  6440. vRadius
  6441. yCenter
  6442. 2287.5
  6443. xCenter
  6444. ExplodedPieChart
  6445. tbk_wid_name
  6446. PlotValues
  6447. PlotOrigin
  6448. PlotColors
  6449. tbk_wid_props
  6450. tbk_wid_values
  6451. blue,red,green,magenta,cyan,yellow
  6452. myPlotColors
  6453. plotValues
  6454. chart one
  6455. plotOrigin
  6456. buttonUp
  6457. plotValues 
  6458. "chart one" 
  6459. plotOrigin 
  6460. 150,240
  6461. plotValues
  6462. chart one
  6463. buttonUp
  6464. plotValues 
  6465. "chart one" 
  6466. chart one
  6467. plotOrigin
  6468. buttonUp
  6469. plotOrigin 
  6470. "chart one" 
  6471. chart one
  6472. plotOrigin
  6473. buttonUp
  6474. plotOrigin 
  6475. "chart one" 
  6476. chart one
  6477. plotOrigin
  6478. buttonUp
  6479. plotOrigin 
  6480. "chart one" 
  6481. plotColors
  6482. blue,red,green,magenta,cyan,yellow
  6483. chart one
  6484. buttonUp
  6485. plotColors 
  6486. "chart one" 
  6487. Color Scheme 1
  6488. plotColors
  6489. magenta,cyan,yellow,red,blue,green
  6490. chart one
  6491. buttonUp
  6492. plotColors 
  6493. "chart one" 
  6494. Color Scheme 2
  6495. .'+    +F
  6496. .'+    +F
  6497. Chart One
  6498. plotOrigin
  6499. buttonUp
  6500. plotOrigin 
  6501. "Chart One" 
  6502. .'+    +F
  6503. .'+    +F
  6504. false
  6505. Chart One
  6506. plotOrigin
  6507. buttonUp
  6508. odone 
  6509. plotOrigin 
  6510. "Chart One" 
  6511. i,i*2
  6512. false
  6513. Animate
  6514. .'+    +F
  6515. .'+    +F
  6516. explodeAngle
  6517. false
  6518. Chart One
  6519. plotOrigin
  6520. plotOrigin
  6521. buttonUp
  6522. odone 
  6523. explodeAngle 
  6524. plotOrigin 
  6525. "Chart One"
  6526. Animate
  6527. Values 10 to 1
  6528. Values 2 to 1
  6529. Degree 90
  6530. Animate 1
  6531. Animate 2
  6532. Color Scheme 1
  6533. Color Scheme 2
  6534. ASYM_BeenHere
  6535. Sliders
  6536. label
  6537. Sliders
  6538. horizSlider
  6539. sldrPosition
  6540. tbk_wid_name
  6541. horizSlider
  6542. centered
  6543. txClassName
  6544. HSliderThumb
  6545. vertSlider
  6546. sldrPosition
  6547. tbk_wid_name
  6548. vertSlider
  6549. txClassName
  6550. VSliderThumb
  6551. Slider with graphic button
  6552. Slider with line endbutton
  6553. These widgets demonstrate how to make graphical sliders.
  6554. The baseball slider uses a resource of the book; the pointer slider uses a line end. 
  6555. ASYM_BeenHere
  6556. Ratchet
  6557. label
  6558. Ratchet
  6559. slider
  6560. tbk_wid_name
  6561. slider
  6562. ,&H.&
  6563. 1,"JRY
  6564. ,&H.&
  6565. slider
  6566. buttonDown
  6567. -- This handler jumps the slider 
  6568. each tick mark 
  6569. mouse 
  6570. moved
  6571. Zarray x[5], pin[4]
  6572. i] = (((
  6573. U(i+1))-(
  6574. Ui))/2 )+(
  6575.         x[i] = (
  6576. Ui)-82
  6577.         pos = 
  6578. " = x[1]
  6579. " = x[2]
  6580. " = x[3]
  6581.             When 
  6582. " = x[4]
  6583. " = x[5]
  6584. slider
  6585. emitting_Slider
  6586. tbk_wid_name
  6587. emitting_Slider
  6588. slider@
  6589. ,&H.&
  6590. 1,"JRY
  6591. ,&H.&
  6592. slider
  6593. buttonDown
  6594. -- This handler jumps the slider 
  6595. each tick mark 
  6596. mouse 
  6597. moved
  6598. Zarray x[5], pin[4]
  6599. i] = (((
  6600. U(i+1))-(
  6601. Ui))/2 )+(
  6602.         x[i] = (
  6603. Ui)-82
  6604.         pos = 
  6605. " = x[1]
  6606. " = x[2]
  6607. " = x[3]
  6608.             When 
  6609. " = x[4]
  6610. " = x[5]
  6611. slider2
  6612. track
  6613. These ratchet sliders constrain the user's choices to certain values.
  6614. Each widget allows itself to be set only at the hash marks. The user doesn't have intermediate values available, and this fact is reinforced by the visual feedback. The widget below also reports what mark it has been set to.set to.
  6615. Face Plate 2
  6616. Back Plate 2
  6617. Face Plate 1
  6618. Back Plate 1
  6619. ASYM_BeenHere
  6620. l!Z!u4
  6621. Scale Slider
  6622. label
  6623. Scale Slider
  6624. slider
  6625. mySliderMin
  6626. mySliderMax
  6627. mysliderPos
  6628. myNumTics
  6629. tbk_wid_name
  6630. scaledSlider
  6631. tbk_wid_props
  6632. numTics
  6633. tallTicSpacing
  6634. sliderMin
  6635. sliderMax
  6636. sliderPos
  6637. tbk_wid_values
  6638. myTallTicSpacing
  6639. thumb
  6640. txClassName
  6641. hSliderThumb
  6642. glide
  6643. button id 103 of page id 15
  6644. width
  6645. hilight
  6646. false
  6647. myTrackPos
  6648. helptext
  6649. Shuttle
  6650. Button
  6651. 10.566666666666673
  6652. 200033333333333344
  6653. 30.50000000000001e-014
  6654. 40006666666666669
  6655. 50.53333333333336
  6656. 60000000000000001
  6657. 10000
  6658. emitter
  6659. #00.00
  6660. sliderMove
  6661. notifyAfter sliderMove pos
  6662. arbitrary precision, comment the 
  6663. adjust 
  6664. zeros 
  6665. tpoint
  6666. %"#00.00"
  6667. integers
  6668. tbk_wid_name
  6669. scale_emitter
  6670.  50.00569620253169
  6671. startSliderMove
  6672. sliderMove
  6673. endSliderMove
  6674. sliderMove
  6675. A sophisticated slider with a number of properties you can edit.
  6676. The slider widget sends the following messages:
  6677. startSliderMove: sent when the user first clicks on the thumb
  6678. sliderMove: sent constantly as the slider is being dragged
  6679. endSliderMove: sent when the user releases the thumb.
  6680. Each of these messages includes the current position of the slider thumb as its parameter.
  6681. You can set or get the following properties of the slider.
  6682. sliderMin: Minimum value for the slider
  6683. sliderMax: Maximum value for the slider
  6684. sliderPos: Position of the thumb
  6685. numTics: Number of tic marks that appear on the scale (max 50)
  6686. tallTicSpacing: Frequency of tall tics on the scale. Each tall tic has a label below it. (up to 11 labels)
  6687. These properties are easily accessed through the property browser.owser..in the tools30.sbk.
  6688. ASYM_BeenHere
  6689. Calculator
  6690. label
  6691. Calculator
  6692. Calculator
  6693. tbk_wid_name
  6694. Calculator
  6695. memory
  6696. buttonClick
  6697. buttonClick
  6698. 4memory
  6699. display
  6700. memory
  6701. last_key
  6702. buttonClick
  6703. buttonClick
  6704. 4last_key, memory
  6705. "display" --
  6706. display
  6707. last_key
  6708. memory
  6709. buttonClick
  6710. buttonClick
  6711. 4memory, last_key
  6712. "display"
  6713. "mr" 
  6714. display
  6715. memory
  6716. last_key
  6717. buttonClick
  6718. buttonClick
  6719. 4last_key, memory
  6720. "display" --subtract 
  6721. calculate
  6722. buttonClick
  6723. buttonClick
  6724. calculate (
  6725. LBdisplay
  6726. buttonClick
  6727. buttonClick
  6728. display (
  6729. decimal
  6730. clear
  6731. display
  6732. last_key
  6733. buttonClick
  6734. theStore
  6735. buttonDoubleClick
  6736. buttonClick
  6737. 4last_key
  6738. "display" 
  6739. Jkeystroke
  6740. 4theStore, op
  6741. --initialize 
  6742. temp value
  6743. operator
  6744. plusminusbtn
  6745. display
  6746. buttonup
  6747. "display" 
  6748. * (-1)
  6749. display
  6750. buttonClick
  6751. buttonDoubleClick
  6752. buttonClick
  6753. 09011997480157360e+036
  6754. A ten-key style calculator with memory.
  6755. ASYM_BeenHere
  6756. A regular old calculator, works great.
  6757. functions
  6758.  a question widget) when an object that has the ASYM_Draggable property set to TRUE is dragged.
  6759. Widget Properties
  6760. (not all properties are valid for all question types)
  6761. PROPERTIES
  6762. VALUE
  6763. PURPOSE
  6764. ASYM_WID_AnsArray
  6765. Array
  6766. Contains all of the response definition data for the question. (see below)
  6767. ASYM_WID_AnswerLocked
  6768. Specifies whether the questL
  6769. Validate Text, 2
  6770. label
  6771. ASYM_BeenHere
  6772. Validate Text, 2
  6773. These widgets validate the text after each keystroke..
  6774. The widget fields will only accept data of the type described in the fields to the left of the widgets. The test is made after each keystroke. The pattern for the first widget is a user property. 
  6775. Patterned text:
  6776. Alpha - whitespace:
  6777. AlphaNumeric - whitespace:
  6778. Keystroke_FormatText
  6779. NNN-AAA-*NN
  6780. templet
  6781. Keystroke_FormatText
  6782. tbk_wid_name
  6783. 345-yrt-434
  6784. Keystroke_Alphawhitespace
  6785. ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz
  6786. keyChar
  6787. key, isShift, isControl
  6788. ZSTRING characterTyped
  6789.  = ansitoChar(
  6790.     numberDigits = 
  6791. "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz"
  6792. Keystroke_Alphawhitespace
  6793. tbk_wid_name
  6794. widget widget   
  6795. Keystroke_Alphanumeric
  6796. ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789
  6797. keyChar
  6798. key, isShift, isControl
  6799. ZSTRING characterTyped
  6800.  = ansitoChar(
  6801.     numberDigits = 
  6802. "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789"
  6803.  = 8 
  6804.  = 9 
  6805.  = 32
  6806. Keystroke_Alphanumeric
  6807. tbk_wid_name
  6808. jkljk34 33fjssssssssssssssssss
  6809. Auto-scroll Recordfield
  6810. label
  6811. ASYM_BeenHere
  6812. Auto-scroll Recordfield
  6813. This script will force a recordfield's scrollbar to automatically appear when necessary. Note the difference between this script and the script for "Auto-scroll field." A recordfield resides on the background, but must be referred to by page, so we have to massage the object reference.from
  6814. to handle showOrHideScrollbar
  6815.     get self
  6816.     obj = words 1 to 3 of it
  6817.     if textOverflow of obj > 0 or scroll of obj> 0
  6818.         oldBorder of obj = borderStyle of obj
  6819.         set borderStyle of obj to scrolling
  6820.     else
  6821.         if oldBorder of obj = NULL
  6822.             oldBorder of obj = borderStyle of obj
  6823.         end
  6824.         set borderStyle of obj to oldBorder of obj
  6825.     end if
  6826. notifyBefore enterPage
  6827.     send showOrHideScrollbar
  6828. notifyAfter leaveField
  6829.     send showOrHideScrollbar
  6830. notifyAfter keyUp
  6831.     send showOrHideScrollbar
  6832. notifyAfter paste
  6833.     send showOrHideScrollbar
  6834. notifyAfter cut
  6835.     send showOrHideScrollbar
  6836. notifyAfter clear
  6837.     send showOrHideScrollbar
  6838. "hideControls
  6839. helpTemplate
  6840. reader
  6841. <All topics>
  6842. Using this &Template
  6843. displayBitsPerPixel
  6844. Displays help on using this template.
  6845. categories
  6846. getDC
  6847. releaseDC
  6848. lighterBlue
  6849. Topics
  6850. false
  6851. tb40win.dll
  6852. darkerBlue
  6853. getDeviceCaps
  6854. moveTo
  6855. lineTo
  6856. setROP2
  6857. createPen
  6858. deleteObject
  6859. selectObject
  6860. navigationBar
  6861. backcolor
  6862. Tvpopulate
  6863. numColors
  6864. enterApplication
  6865. helpTemplate
  6866. leaveApplication
  6867. CshowControls
  6868. author
  6869. 1,"J<Y
  6870. topics
  6871. CategoryButtons
  6872. Navigation
  6873. showControls
  6874. "hideControls
  6875. reader
  6876. topics
  6877. CategoryButtons
  6878. Navigation
  6879. hideControls
  6880. itemOffset
  6881. description and script,description and example,description only
  6882. pageID
  6883. categoryStruct
  6884. categoryStruct
  6885. destroy
  6886. .',    "
  6887. subTopicName
  6888. description and script,description and example,description only
  6889. scrolling
  6890. explanation
  6891. label
  6892. enterPage
  6893. subTopicName
  6894. description and script,description and example,description only
  6895. label
  6896. topic
  6897. label
  6898. leavePage
  6899. extractName
  6900. extractID
  6901. ,&H.&
  6902. itemOffset
  6903. stripChar
  6904. }releaseDC
  6905. 4getDeviceCaps
  6906. getDC
  6907. retval
  6908. numColors
  6909. Q@darkerBlue
  6910. R@lighterBlue
  6911. bckgrnds
  6912. intro,description and script,description and example,description only
  6913. curBack
  6914. backColor
  6915. categoryStruct
  6916. showCategoryStruct
  6917. stbk_noSwap
  6918. |CtwoDquicksrt
  6919. twoDquicksort
  6920. stbk_noSwap
  6921. |CtwoDquicksrt
  6922. twoDquicksrt
  6923. .',    "
  6924. Cannot find book TMPLHELP.TBK
  6925. mydir
  6926. tmplhelp.tbk
  6927. helpTemplate
  6928. author
  6929. reader
  6930. author
  6931. zashowOrHideScrollbar
  6932. enterpage
  6933. zashowOrHideScrollbar
  6934. leaveField
  6935. zashowOrHideScrollbar
  6936. keyUp
  6937. zashowOrHideScrollbar
  6938. paste
  6939. zashowOrHideScrollbar
  6940. zashowOrHideScrollbar
  6941. clear
  6942. reader
  6943. showOrHideScrollbar
  6944. obref
  6945. dlgPage
  6946. -nameRef
  6947. Scripts cannot be viewed when using the runtime version of Multimedia ToolBook.
  6948. scriptObjects
  6949. scriptChooserDialog
  6950. currentobject
  6951. buttonclick
  6952. obtype
  6953. obname
  6954. nameRef
  6955. stbk_noSwap
  6956. |CtwoDquicksrt
  6957. twoDquicksort
  6958. stbk_noSwap
  6959. |CtwoDquicksrt
  6960. twoDquicksrt
  6961. asWord
  6962. searchReplace
  6963. searchString
  6964. /searchReplace
  6965. replaceString
  6966. buttonup
  6967. false
  6968. wordDelimit
  6969. curTxt
  6970. -+*/<>,()[];^=&.?':
  6971. searchReplace
  6972. hotword
  6973. seconds
  6974. Minute
  6975. buttonup
  6976. decrement
  6977. minute
  6978. increment
  6979. is outside range 0 to 59
  6980. minute
  6981. minute
  6982. minute
  6983. minute
  6984. decrement
  6985. increment
  6986. out of range 1 to 12
  6987. decrement
  6988. out of range 00 to 59
  6989. ;seconds
  6990. increment
  6991. seconds
  6992. seconds
  6993. seconds
  6994. seconds
  6995. hh : min : sec AMPM
  6996. seconds
  6997. minute
  6998. newHotwordID
  6999. initialize
  7000. hotword
  7001. newHotwordID
  7002. hotword
  7003. month
  7004. buttonup
  7005. .&,    #?
  7006. decrement
  7007. daysInMonth
  7008. is outside range 1 to
  7009. increment
  7010. decrement
  7011. month
  7012. increment
  7013. month
  7014. out of range 1 to 12
  7015. month
  7016. month
  7017. month
  7018. decrement
  7019. increment
  7020. out of range 00 to 99
  7021. month
  7022. mm / dd / yy
  7023. newHotwordID
  7024. initialize
  7025. 31,28,31,30,31,30,31,31,30,31,30,31
  7026. month
  7027. daysInMonth
  7028. hotword
  7029. newHotwordID
  7030. .'+    +F
  7031. .'+    +F
  7032. cancel
  7033. samples
  7034. Enter a file name for this wave file.
  7035. Cancel
  7036. sample rate
  7037. &Cancel
  7038. record waveFile
  7039. Please choose a clip first.
  7040.  Try a different name?
  7041. save waveFile
  7042. oldTimeFormat
  7043. clip chooser
  7044. This clip may cannot be played at this time.
  7045. stopSpot
  7046. Would you like to hear
  7047. whatClip
  7048. already exists.  Try a different name?
  7049. set waveFile channels
  7050. bitsPer
  7051. channels
  7052. close waveFile
  7053. bits/sample
  7054. play waveFile from 0 wait
  7055. set waveFile bitspersample
  7056. set waveFile samplespersec
  7057. open new type waveaudio alias waveFile buffer 5
  7058. stop waveFile
  7059. startSpot
  7060. cue waveFile input
  7061. default
  7062. fileName
  7063. buttonClick
  7064. waveAudio
  7065. Stop Clip
  7066. Please choose a clip first.
  7067. cdAudio
  7068. sequencer
  7069. clip chooser
  7070. jwhatClip
  7071. whatClip
  7072. The specified clip cannot be played at this time.
  7073. closed
  7074. jwhatClip
  7075. Play Clip
  7076. buttonClick
  7077. waveAudio
  7078. Stop Clip
  7079. cdAudio
  7080. successful
  7081. sequencer
  7082. mmplay
  7083. mmnotify
  7084. CLOSED
  7085. whatClip
  7086. jwhatClip
  7087. Play Clip
  7088. leavePage
  7089. Play Clip
  7090. enterPage
  7091. jwhatClip
  7092. CdresetContents
  7093. enterpage
  7094. CdresetContents
  7095. 1,    #>
  7096. 1,    #>
  7097. ,&H.&
  7098. soundList
  7099. listToTextline
  7100. whatWave
  7101. GetWinIniVar
  7102. sounds
  7103. tb40win.dll
  7104. listToTextline
  7105. sound
  7106. tb40dlg.dll
  7107. GetWinIniVar
  7108. *getWinIniVar
  7109. filename
  7110. resetContents
  7111. filename
  7112. whatWave
  7113. selectChange
  7114. pointerObj
  7115. ={rotation
  7116. pointerObj
  7117. angle
  7118. dialMax
  7119. startAngle
  7120. endAngle
  7121. /dialMax
  7122. dialMin
  7123. QendAngle
  7124. startAngle
  7125. 1-dialMin
  7126. dialPos
  7127. pointerObj
  7128. angle
  7129. startAngle
  7130. dialMax
  7131. endAngle
  7132. /dialMax
  7133. dialMin
  7134. QendAngle
  7135. startAngle
  7136. coords
  7137. 1-dialMin
  7138. >{rotation
  7139. dialPos
  7140. angleFromPoint
  7141. pointerObj
  7142. endDialMove
  7143. angle
  7144. >9dialPos
  7145. |angleFromPoint
  7146. startAngle
  7147. dialMax
  7148. endAngle
  7149. /dialMax
  7150. 9adialMove
  7151. >{rotation
  7152. dialMin
  7153. QendAngle
  7154. startAngle
  7155. coords
  7156. 1-dialMin
  7157. Field
  7158. buttondown
  7159. dialMove
  7160. enddialMove
  7161. .',    "
  7162. C333333
  7163. C333333
  7164. centerPosition
  7165. curField
  7166. startAngle
  7167. dialMax
  7168. endAngle
  7169. /dialMax
  7170. mtallTicSpacing
  7171. myNumTics
  7172. dialMin
  7173. QendAngle
  7174. startAngle
  7175. coords
  7176. 1-dialMin
  7177. numTics
  7178. centerPosition
  7179. LnumTics
  7180. mydialMax
  7181. LnumTics
  7182. dialMax
  7183. mydialMin
  7184. LnumTics
  7185. LnumTics
  7186. dialmin
  7187. mydialMax
  7188. dialMax
  7189. mydialMin
  7190. dialMin
  7191. myTallTicSpacing
  7192. Lnumtics
  7193. Lnumtics
  7194. tallTicSpacing
  7195. .myStartAngle
  7196. Lnumtics
  7197. Lnumtics
  7198. startAngle
  7199. Lnumtics
  7200. myendAngle
  7201. Lnumtics
  7202. endAngle
  7203. myNumTics
  7204. numTics
  7205. .myStartAngle
  7206. startAngle
  7207. myendAngle
  7208. endAngle
  7209. myTallTicSpacing
  7210. tallTicSpacing
  7211. Q+struct
  7212. objlist
  7213. group
  7214. myRotation
  7215. structInfo
  7216. myRotation
  7217. curObjType
  7218. arc,pie
  7219. line,curve,angledline,polygon,irregularPolygon,pie,arc
  7220. storePolar
  7221. myRotation
  7222. rotation
  7223. false
  7224. propsStored
  7225. group
  7226. uprops
  7227. myRotation
  7228. objlist
  7229. structInfo
  7230. maliable
  7231. Q+struct
  7232. storePolar
  7233. structInfo
  7234. curObjType
  7235. struct
  7236. P+struct
  7237. arc,pie
  7238. rotation
  7239. pointerObj
  7240. Lnumtics
  7241. structInfo
  7242. Q+struct
  7243. Lnumtics
  7244. sized
  7245. $b7    d
  7246. copenMIDI
  7247. program
  7248. s_note
  7249. hplayMIDI
  7250. s_channel
  7251. s_program
  7252. s_hMidiOut
  7253. s_volume
  7254. buttonDown
  7255. tstopMIDI
  7256. buttonUp
  7257. +#,"Y
  7258. +#,"Y
  7259. packDword
  7260. s_channel
  7261. s_note
  7262. Unable to play MIDI device
  7263. MidiOutShortMsg
  7264. s_program
  7265. s_hMidiOut
  7266. s_volume
  7267. playMIDI
  7268. +#,"Y
  7269. packDword
  7270. s_channel
  7271. s_note
  7272. Unable to stop MIDI device
  7273. MidiOutShortMsg
  7274. s_hMidiOut
  7275. s_volume
  7276. stopMIDI
  7277. freeWinPointer
  7278. $bgetWinPointer
  7279. MidiOutOpen
  7280. mmsystem.dll
  7281. KERNEL
  7282. closeMIDI
  7283. s_hMidiOut
  7284. GlobalAlloc
  7285. GlobalLock
  7286. Globalhandle
  7287. GlobalUnlock
  7288. GlobalFree
  7289. Unable to open MIDI device
  7290. MidiOutGetNumDevs
  7291. midiOutOpen
  7292. MidiOutShortMsg
  7293. MidiOutReset
  7294. MidiOutClose
  7295. MidiOutGetNumDevs
  7296. No MIDI devices found
  7297. openMIDI
  7298. s_device
  7299. B%MidiOutClose
  7300. s_hMidiOut
  7301. u0MidiOutReset
  7302. closeMIDI
  7303. GlobalAlloc
  7304. GlobalLock
  7305. getWinPointer
  7306. GlobalFree
  7307. GlobalUnLock
  7308. Globalhandle
  7309. Memory error occured.  Operation Aborted.
  7310. freeWinPointer
  7311. packDWord
  7312. copenMIDI
  7313. enterPage
  7314. copenMIDI
  7315. reader
  7316. closeMIDI
  7317. leavePage
  7318. closeMIDI
  7319. author
  7320. w,    #?
  7321. disablePage
  7322. level
  7323. page of this
  7324. enterPage
  7325. w,    #?
  7326. go to
  7327. level
  7328. page of this
  7329. buttonClick
  7330. prop_level
  7331. invalid level for widget:
  7332. background, book
  7333. must be "background" or "book"
  7334. level
  7335. prop_level
  7336. level
  7337. First
  7338. must be "Next", "Previous", "First", or "Last"
  7339. invalid direction for widget:
  7340. Next,Previous,First,Last
  7341. disablePage
  7342. direction
  7343. direction
  7344. prop_disablePage
  7345. invalid disablePage:
  7346. First, last
  7347. must be "First" or "Last"
  7348. disablePage
  7349. prop_disablePage
  7350. disablePage
  7351. w,    #?
  7352. disablePage
  7353. level
  7354. page of this
  7355. enterPage
  7356. w,    #?
  7357. go to
  7358. level
  7359. page of this
  7360. buttonClick
  7361. prop_level
  7362. invalid level for widget:
  7363. background, book
  7364. must be "background" or "book"
  7365. level
  7366. prop_level
  7367. level
  7368. First
  7369. must be "Next", "Previous", "First", or "Last"
  7370. invalid direction for widget:
  7371. Next,Previous,First,Last
  7372. disablePage
  7373. direction
  7374. direction
  7375. prop_disablePage
  7376. invalid disablePage:
  7377. First, last
  7378. must be "First" or "Last"
  7379. disablePage
  7380. prop_disablePage
  7381. disablePage
  7382. ,&H.&
  7383. curLine
  7384. curField
  7385. topic
  7386. adjustLines
  7387. ,&H.&
  7388. chapterRef
  7389. pageID
  7390. Chapter
  7391. selectedChapter
  7392. middleGray
  7393. selected
  7394. joiner
  7395. false
  7396. topics
  7397. Zselected
  7398. topicTree
  7399. topics
  7400. midspot
  7401. chapter
  7402. topic
  7403. Couldn't navigate to page
  7404. buttonDown
  7405. .',    "
  7406. extractName
  7407. plast
  7408. bracket
  7409. curtopicField
  7410. midspot
  7411. joiner
  7412. topic
  7413. No topics exist for this chapter.
  7414. topicTree
  7415. O@middleGray
  7416. V,    #>
  7417. ,&H.&
  7418. topics
  7419. chapter1
  7420. chapter
  7421. makeOutline
  7422. extractName
  7423. .'+    +F
  7424. .'+    +F
  7425. tb40win.dll
  7426. GlobalUnlock
  7427. GlobalAlloc
  7428. DeleteObject
  7429. setBKMode
  7430. CreateFontIndirect
  7431. Selectobject
  7432. Textout
  7433. DeleteObject
  7434. }ReleaseDC
  7435. GetDC
  7436. ReleaseDC
  7437. Selectobject
  7438. clientFromPage
  7439. GlobalAlloc
  7440. GlobalLock
  7441. GlobalUnlock
  7442. GlobalFree
  7443. dcTextout
  7444. GlobalFree
  7445. GlobalLock
  7446. GetDC
  7447. kernel
  7448.  CreateFontIndirect
  7449. setBkMode
  7450. buttonClick
  7451. leavePage
  7452. .isChild
  7453. ,toggleInvert
  7454. button
  7455. [ebuttonPressed
  7456. buttonUp
  7457. \ebuttonPressed
  7458. ,toggleInvert
  7459. buttonDown
  7460. .isChild
  7461. ,toggleInvert
  7462. buttonStillDown
  7463. invertedButton
  7464. invertedButton
  7465. toggleInvert
  7466. FALSE
  7467. group
  7468. isChild
  7469. ,&H.&
  7470. invertedButton
  7471. .',    #>
  7472. ,&H.&
  7473. .',    #>
  7474. .'+    +
  7475. bckgrnds
  7476. extractID
  7477. sortTextLines
  7478. intro,description and script,description and example,description only
  7479. pageRef
  7480. wsortTextLines
  7481. tb40dlg.dll
  7482. backRef
  7483. label
  7484. populate
  7485. extractID
  7486. navigationbar
  7487. buttonclick
  7488. Useful Patterns
  7489. label
  7490. ASYM_BeenHere
  7491. Useful Patterns
  7492. These widgets recognize data entered in a standard pattern of numbers..
  7493. Here are two widgets ready to go into your application. They both validate the data on keystroke, the first will only accept a valid social security number, the second a valid telephone number...
  7494. Social Security Number:
  7495. Keystroke_SSN
  7496. ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz
  7497. templet
  7498. seperator
  7499.  ,.-/
  7500. alpha
  7501. numeric
  7502. characterTyped
  7503. string
  7504. 0123456789
  7505. Etemplet
  7506. keyChar
  7507. Etemplet
  7508. enterField
  7509. key, isShift, isControl
  7510.     templet = 
  7511.     -- user property
  7512.     alpha = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz"
  7513.     numeric = "0123456789"
  7514.     seperator = " ,.-/"
  7515. caretLocation = 
  7516.         characterTyped = 
  7517. o(key)
  7518.         characterNumber = (
  7519. NNN-NN-NNNN
  7520. templet
  7521. Keystroke_SSN
  7522. tbk_wid_name
  7523. 123-45-6789
  7524. Keystroke_Phone
  7525. ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz
  7526. templet
  7527. seperator
  7528.  ,.-/
  7529. alpha
  7530. numeric
  7531. characterTyped
  7532. string
  7533. 0123456789
  7534. Etemplet
  7535. keyChar
  7536. Etemplet
  7537. enterField
  7538. key, isShift, isControl
  7539.     templet = 
  7540.     alpha = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz"
  7541.     numeric = "0123456789"
  7542.     seperator = " ,.-/"
  7543. caretLocation = 
  7544.         characterTyped = 
  7545. o(key)
  7546.         characterNumber = (
  7547. NNN-NNN-NNNN
  7548. templet
  7549. Keystroke_Phone
  7550. tbk_wid_name
  7551. 206-637-16000
  7552. Telephone Number:
  7553. Add and Remove
  7554. label
  7555. Add and Remove
  7556. Add_and_Remove
  7557. tbk_wid_name
  7558. Add_and_Remove
  7559. Source
  7560. FALSE
  7561. allowDrop
  7562. buttonClick
  7563. buttonStillDown
  7564. beginDrag
  7565. endDrag
  7566. allowDrop sourceObject
  7567. FALSE
  7568. buttonClick
  7569. xenabled 
  7570. oselectedTextlines <> 
  7571.         drag 
  7572. beginDrag
  7573. endDrag targetobject
  7574. tbk_wid_name
  7575. Source
  7576. Henry
  7577. Harriet
  7578. HarryrrietHenryet
  7579. Henry
  7580. Harry
  7581. Destination
  7582. FALSE
  7583. allowDrop
  7584. remove
  7585. buttonClick
  7586. buttonStillDown
  7587. beginDrag
  7588. remove
  7589. endDrag
  7590. allowDrop sourceObject
  7591. FALSE
  7592. buttonClick
  7593. xenabled 
  7594. oselectedTextlines <> 
  7595.         drag 
  7596. beginDrag
  7597. endDrag targetobject
  7598. tbk_wid_name
  7599. Destination
  7600. Harold
  7601. Hildagaarddagaardietgaard
  7602. destination
  7603. Destination
  7604. source
  7605. buttonClick
  7606. enterPage
  7607. buttonClick
  7608. ZINT thisLine
  7609. selectedTextlines 
  7610. "source"
  7611. "Destination" <> 
  7612. CRLF 
  7613. "destination"
  7614. oenabled 
  7615. FALSE
  7616. notifyBefore 
  7617. tbk_wid_name
  7618. Add >>
  7619. remove
  7620. Destination
  7621. source
  7622. buttonClick
  7623. enterPage
  7624. buttonClick
  7625. ZINT thisLine
  7626. selectedTextlines 
  7627. "Destination"
  7628. "source" <> 
  7629. CRLF 
  7630. oenabled 
  7631. FALSE
  7632. notifyBefore 
  7633. tbk_wid_name
  7634. remove
  7635. << Remove
  7636. enterPage
  7637. You can move information back and forth between these two fields. You can also drag the text back and forth.
  7638. Like the old Macintosh Font/DA mover, you can use this control to move information back and forth between a source field and a destination field.
  7639. ASYM_BeenHere
  7640. Directories and Files
  7641. label
  7642. ASYM_BeenHere
  7643. Directories and Files
  7644. These fields can navigate to and display information from your DOS directories.
  7645. These five widgets provide a way to move around in the DOS file system. Changing items here actually changes what drive you are logged onto and what directory is current.
  7646. &Directories
  7647. directories
  7648. directories
  7649. tbk_wid_name
  7650. CLIPART
  7651. SAMPLES
  7652. SETUP
  7653. SPCLST
  7654. TOOLS
  7655. TUTORIAL
  7656. WIDGETS
  7657. WINAPI
  7658. GENI_SP1
  7659. KIDSOFT
  7660. MOUSE
  7661. MSOFFICE
  7662. MSWORKS
  7663. MTB30
  7664. PERSONAL
  7665. POWERPNT
  7666. PRODIGY
  7667. PSDWIN
  7668. QUICKENW
  7669. UTILITY
  7670. WINCAKE
  7671. WINDOWS
  7672. WINFAX
  7673. WINWORDS
  7674. INPUT
  7675. INSTVER
  7676. LISTHORZ
  7677. LOWPASS
  7678. MACROHLP
  7679. MAKEAPP
  7680. MCITEST
  7681. MEMORY
  7682. MIDIMON
  7683. MULTIPAD
  7684. MUSCROLL
  7685. MYPAL
  7686. MYSCRIB
  7687. OUTPUT
  7688. OWNCOMBO
  7689. OWNERB
  7690. PALETTE
  7691. PENCNTL
  7692. PENPAD
  7693. PRNTFILE
  7694. PROFILER
  7695. QWGDEMO
  7696. REVERSE
  7697. ROTARY
  7698. SELECT
  7699. SHOWDIB
  7700. SHOWGDI
  7701. SNOOP
  7702. SORTDEMO
  7703. SRVRDEMO
  7704. TDOSMEM
  7705. TIMERS
  7706. TOOLHELP
  7707. VERSTAMP
  7708. WINMEM32
  7709. WMFDCODE
  7710. XTENSION
  7711. LAURELM
  7712. HOURIR
  7713. BRIANT
  7714. CHARLESO
  7715. ERIKR
  7716. FRANKL
  7717. DICKE
  7718. BRUCEL
  7719. MIYUKIH
  7720. JOHNJ
  7721. SARAHV
  7722. TRANSFER
  7723. CHARLES
  7724. CHRISC
  7725. CHUCKW
  7726. CLAUDE
  7727. STEVEW
  7728. CATHYS
  7729. ALLANF
  7730. LENORAF
  7731. CRAIG
  7732. JOHNCO
  7733. DANNS
  7734. DARLENEM
  7735. DAVEH
  7736. KEVINB
  7737. LINDAA
  7738. DAWNM
  7739. DEBBIE
  7740. INGRIDF
  7741. DENNISO
  7742. STEVET
  7743. GIGIL
  7744. DOUGY
  7745. TERRYL
  7746. WHITEY
  7747. SCOTT
  7748. MIREIZ
  7749. LORIJ
  7750. CHARLESC
  7751. TAMMYH
  7752. AUSTRIA
  7753. MITCHELL
  7754. SWISS
  7755. SAVER
  7756. DENNISC
  7757. DOUGK
  7758. EPOCH
  7759. SCOTTM
  7760. MIKEF
  7761. GER_CPL
  7762. ELAINER
  7763. MELODY
  7764. JOHNGO
  7765. SCOTTSC
  7766. GREGE
  7767. HARRIETL
  7768. HARRYS
  7769. CSC_TOM
  7770. JACKIEV
  7771. MIKEN
  7772. JEAND
  7773. JEFFA
  7774. JOELK
  7775. JEFFU
  7776. JENNIFER
  7777. WHITNEYM
  7778. JEREANG
  7779. DICKH
  7780. JANETS
  7781. RANDYA
  7782. JOHNA
  7783. JOHNB
  7784. JOHNC
  7785. JOHNG
  7786. JOHNT
  7787. JONES
  7788. JORDANS
  7789. JOSEPHB
  7790. JOSHB
  7791. JULIE
  7792. KATHERIN
  7793. KEITHC
  7794. YVETTEB
  7795. DIDIERB
  7796. LANCE
  7797. LAURELC
  7798. LISAA
  7799. CSC_TAMY
  7800. LORIP
  7801. WAYNEW
  7802. MARCS
  7803. MARIEF
  7804. BETHR
  7805. MARKMA
  7806. MARTY
  7807. KIKIW
  7808. RICKS
  7809. BRIANH
  7810. MICHAELS
  7811. JEFFM
  7812. DEBBIEP
  7813. MIKEM
  7814. MOUSE
  7815. NADIMH
  7816. NANETTE
  7817. NORMS
  7818. PAULD
  7819. PAULG
  7820. PAULM
  7821. PHILP
  7822. LOGOS
  7823. DENNISL
  7824. RICKE
  7825. MICHELEC
  7826. DIANED
  7827. ROSSG
  7828. ROSSH
  7829. CHARLOTT
  7830. SCREENS
  7831. SHABBIR
  7832. LISAM
  7833. SARAHH
  7834. SHELLEYH
  7835. SHERRI
  7836. SHIRLEY
  7837. SHUANGL
  7838. SKUSALES
  7839. STEVEB
  7840. STEVEBA
  7841. STEVEBEC
  7842. STEVENW
  7843. SUSAND
  7844. SUSANM
  7845. SUZYS
  7846. MARKR
  7847. TERONU
  7848. TRACEY
  7849. TRAINING
  7850. TYLERB
  7851. SCOTS
  7852. WHOWHERE
  7853. WINNIE
  7854. TONYA
  7855. SUSANP
  7856. DAVIDS
  7857. SYPLUS
  7858. JOHND
  7859. DALEW
  7860. JENNW
  7861. JULIEP
  7862. BETHH
  7863. PRODUCTI
  7864. MIKES
  7865. MARGOTP
  7866. MICHAELO
  7867. STEVEC
  7868. JANETL
  7869. LYNNEP
  7870. TYRONEF
  7871. MIKEST
  7872. KRISTINE
  7873. BILLS
  7874. SANDYW
  7875. GAARL
  7876. MIKEP
  7877. BRADC
  7878. SUSANH
  7879. STEPHEN
  7880. STEVEF
  7881. D&rives
  7882. Drives
  7883. Drives
  7884. tbk_wid_name
  7885. Fi&les
  7886. file list
  7887. file list
  7888. tbk_wid_name
  7889. ANIMALS.WAV
  7890. ANIMATE.ICO
  7891. ANIMATE.TBK
  7892. ASYM01.AVI
  7893. AUTOEDIT.EXE
  7894. AUTOEDIT.ICO
  7895. BROWSER.EXE
  7896. BROWSER.ICO
  7897. CARHORN.WAV
  7898. CBT_DEMO.AVI
  7899. CBT_DEMO.ICO
  7900. CBT_DEMO.TBK
  7901. CBT1.TBK
  7902. CBT2.TBK
  7903. CBT3.TBK
  7904. CBT4.TBK
  7905. CHIRP.WAV
  7906. COMPANY.NDX
  7907. CONTACT.DBF
  7908. CONTACT.ICO
  7909. CONTACT.TBK
  7910. DBEXCHNG.ICO
  7911. DBEXCHNG.TBK
  7912. DIALOG.HLP
  7913. DIALOG.ICO
  7914. DIALOG.TBK
  7915. FEATURES.ICO
  7916. FEATURES.TBK
  7917. HANDBOOK.ICO
  7918. HANDBOOK.TBK
  7919. HANDBOOK.TXT
  7920. LIBRARY.ICO
  7921. LIBRARY.TBK
  7922. MAPI.ICO
  7923. MAPI.TBK
  7924. NAME.NDX
  7925. POP.WAV
  7926. POPIN.WAV
  7927. SAMPLES.HLP
  7928. SCRAPBK.ICO
  7929. SCRAPBK.TBK
  7930. TAQUIN.BMP
  7931. TAQUIN.ICO
  7932. TAQUIN.TBK
  7933. TMPLHELP.TBK
  7934. VAULT.WAV
  7935. WHOWHERE.DB
  7936. WHOWHERE.ICO
  7937. WHOWHERE.MB
  7938. WHOWHERE.PX
  7939. WHOWHERE.TBK
  7940. WIDGETS.ICOTS.ICOD30.HLP
  7941. MTB30.ATS
  7942. MTB30.EXE
  7943. MTB30.HLP
  7944. MTB30.SBK
  7945. MTB30ANM.SBK
  7946. MTB30BAS.DLL
  7947. MTB30BMP.DLL
  7948. MTB30CBT.DLL
  7949. MTB30CMP.DLL
  7950. MTB30CVT.DLL
  7951. MTB30EDT.DLL
  7952. MTB30FLT.DLL
  7953. MTB30LNL.DLL
  7954. MTB30MM.DLL
  7955. MTB30MM.INI
  7956. MTB30MM.SBK
  7957. MTB30NET.EXE
  7958. MTB30RED.DLL
  7959. MTB30RUN.EXE
  7960. MTB30UTL.DLL
  7961. MTB30XTR.DLL
  7962. MTBPREFS.EXE
  7963. PALED30.EXE
  7964. PALED30.HLP
  7965. PARADOX.ATS
  7966. PATHANIM.HLP
  7967. PCDLIB.DLL
  7968. PCDXBMP.DLL
  7969. PHOTO.DLL
  7970. PRINTWND.SBK
  7971. PXENGWIN.DLL
  7972. REFSHELF.EXE
  7973. RELNOTES.HLP
  7974. RELNOTES.WRI
  7975. SCRNCAMP.EXE
  7976. SCRNCAMP.TXT
  7977. SCRWALK.ICO
  7978. SCRWALK.TBK
  7979. SYSINFO.EXE
  7980. TB30DB3.DLL
  7981. TB30DLG.DLL
  7982. TB30DOS.DLL
  7983. TB30PDX.DLL
  7984. TB30WIN.DLL
  7985. TB30XTR.DLL
  7986. TBKDB3.DLL
  7987. TBKDLG.DLL
  7988. TBKFILE.DLL
  7989. TBKSHELF.EXE
  7990. TBKWIN.DLL
  7991. TBLOAD.EXE
  7992. TEST.EXE
  7993. TEST.TBK
  7994. THUMB.SBK
  7995. UTILS.ATS
  7996. VEAMAA51.LEX
  7997. WAVEED30.EXE
  7998. WAVEED30.HLP
  7999. WINCOMT.DLL
  8000. WINCONST.HLP
  8001. WRAPBAR.DLL
  8002. WRKBNCHT.DLL
  8003. Current Directory
  8004. CurrentDirectory
  8005. w,    #>
  8006. vgetcurrentDirectory
  8007. getCurrentDrive
  8008. drive
  8009. updateDirectoryInfo
  8010. notifyBefore updateDirectoryInfo path
  8011.     drive = getCurrentDrive()
  8012. &":\"&getcurrentDirectory(
  8013. CurrentDirectory
  8014. tbk_wid_name
  8015. D:\MTB40\SAMPLESETRIND1\PROBLEMDOSST\RESWDLGCK
  8016. File Name
  8017. file name
  8018. file name
  8019. tbk_wid_name
  8020. ANIMATE.TBKE
  8021. updateDirectoryInfo
  8022. updateFileInfo
  8023. acceptFile
  8024. enterpage
  8025. selectFile
  8026. updateFileInfo
  8027. updateDirectoryInfo
  8028. selectFile
  8029. activateInstance
  8030. Time and Date
  8031. label
  8032. ASYM_BeenHere
  8033. Time and Date
  8034. These fields display the current date and time.
  8035. AutoDate and AutoTime initialize themselves on the enterPage message with a notifyBefore handler. You can get and set the formats in which they show the date and time with any legal OpenScript time format. The widgets will set their default format and immediately update. For example, type the following script in the Command window: set format of field "autoDate" to "dd/mm/yy".
  8036. autoDate
  8037. format
  8038. enterPage
  8039. prop_format
  8040. format
  8041. prop_format
  8042. format
  8043. notifyBefore 
  8044. value
  8045. oprop_format 
  8046.     sendnotifyBefore 
  8047. autoDate
  8048. tbk_wid_name
  8049. format
  8050. borderStyle
  8051. tbk_wid_props
  8052. list,none,rectangle,shadowed,inset,raised
  8053. tbk_wid_values
  8054. mm/dd/yy
  8055. prop_format
  8056. 09/07/9520, 1993
  8057. autoTime
  8058. autoTime
  8059. tbk_wid_name
  8060. format
  8061. borderStyle
  8062. period
  8063. tbk_wid_props
  8064. list,none,rectangle,shadowed,inset,raised
  8065. tbk_wid_values
  8066. h:min:sec AMPM
  8067. prop_format
  8068. period
  8069. timerID
  8070. 8:45:01 AMM
  8071. Auto date:nameer
  8072. Auto time:nameer
  8073. enterPage
  8074. leavePage
  8075. International Time and Date
  8076. label
  8077. ASYM_BeenHere
  8078. International Time and Date
  8079. These fields display the current date and time in the current international format.
  8080. These widgets are just like the "Auto Date" and "Auto Time" widgets except that they determine their formats by referring to the sysIDate and sysITime international system properties.operties.
  8081. autoDate
  8082. myDate
  8083. dd/mm/yy
  8084. yy/mm/dd
  8085. mm/dd/yy
  8086. enterPage
  8087. notifyBefore 
  8088.     myDate = 
  8089. sysIDate
  8090. %"dd/mm/yy"
  8091. %"yy/mm/dd"
  8092. %"mm/dd/yy"
  8093. autoDate
  8094. tbk_wid_name
  8095. format
  8096. borderStyle
  8097. tbk_wid_props
  8098. list,none,rectangle,shadowed,inset,raised
  8099. tbk_wid_values
  8100. mm/dd/yy
  8101. prop_format
  8102. 05/26/9540, 1993
  8103. autoTime
  8104. period
  8105. SetTimer
  8106. widTimerStart
  8107. KillTimer
  8108. widTimerEnd
  8109. hfwidTimerStart
  8110. clockTick
  8111. :timerID
  8112. enterPage
  8113. widTimerEnd
  8114. :timerID
  8115. leavePage
  8116. hh24:min:sec
  8117. clockTick
  8118. h:min:sec
  8119. :timerID
  8120. clockTick
  8121. notifyBefore 
  8122.     linkDLL "user"
  8123.         WORD widTimerStart=SetTimer(
  8124. ,DWORD)
  8125. +End = KillTimer(
  8126.     translateWindowMessage 
  8127. windowhandle 
  8128.         on 0x0113 
  8129. clockTick 
  8130. otimerID 
  8131. operiod * 1000, 0)
  8132. notifyAfter 
  8133. widTimerEnd(
  8134.     unlinkDLL "
  8135. hWnd, msg, 
  8136. sysITime = 1
  8137. %"hh24:
  8138. j:sec"
  8139. autoTime
  8140. tbk_wid_name
  8141. format
  8142. borderStyle
  8143. period
  8144. tbk_wid_props
  8145. list,none,rectangle,shadowed,inset,raised
  8146. tbk_wid_values
  8147. h:min:sec AMPM
  8148. prop_format
  8149. period
  8150. timerID
  8151. 3:52:015PMM
  8152. International date:
  8153. International time:
  8154. enterPage
  8155. leavePage
  8156. Calendar
  8157. label
  8158. ASYM_BeenHere
  8159. Calendar
  8160. A calendar that keeps itself current.
  8161. This widget automatically shows the current date, and can be set to show any month in the years 1700 to 2100. Enough functionality is provided to make the scripts easily extensible.
  8162. calendar
  8163. calendar
  8164. tbk_wid_name
  8165. field "27"
  8166. resetObj
  8167. frame
  8168. calYear
  8169. HSbuildcal
  8170. frame
  8171. whatDate
  8172. sCurrentMonth
  8173. m d y
  8174.     sCurrentYear
  8175. selectChange
  8176. selectChange whatText
  8177. 4sCurrentMonth, sCurrentYear
  8178. whatDate = 
  8179. %"m d y"
  8180. = TRUE
  8181. buildcal 
  8182. "frame"
  8183. = FALSE
  8184.     d    1700
  8185. calMonth
  8186. HSbuildcal
  8187. frame
  8188. whatDate
  8189. sCurrentMonth
  8190. m d y
  8191.     sCurrentYear
  8192. selectChange
  8193. selectChange whatMonth
  8194. 4sCurrentMonth, sCurrentYear
  8195. whatDate = 
  8196. %"m d y"
  8197. = TRUE
  8198. buildcal 
  8199. "frame"
  8200. = FALSE
  8201. Mayober            109yy
  8202. January            1
  8203. February            2
  8204. March            3
  8205. April            4
  8206. May            5
  8207. June            6
  8208. July            7
  8209. August            8
  8210. September            9
  8211. October            10
  8212. November            11
  8213. December            124
  8214. today
  8215. HSbuildcal
  8216. m,d,y
  8217. displayDate
  8218. sCurrentDay
  8219. sCurrentMonth
  8220. mydate
  8221.     sCurrentYear
  8222. buttonClick
  8223. buttonClick
  8224. 4sCurrentMonth, sCurrentYear, sCurrentDay
  8225. mydate = 
  8226. %"m,d,y"
  8227. = TRUE
  8228. displayDate 
  8229. buildcal 
  8230. = FALSE
  8231. Field id 83 of Page id 2
  8232. lastObj
  8233. strokcolor
  8234. strokcolor
  8235. enterPage
  8236. Get Printer Resolution
  8237. label
  8238. ASYM_BeenHere
  8239. Get Printer ResolutionA
  8240. Windows allows us to learn about the way a device displays information by creating an "Information Context". We use the API calls "createIC" and "getDeviceCaps" with the name of the printer (retrieved from the win.ini). This method is capable of finding out just about anything you want to know about your printer or your display monitor.
  8241. to handle buttonClick
  8242.     get printerRes()
  8243.     if it <> null
  8244.         request "This printer has a resolution of" && \
  8245.           item 1 of it && "by" && item 2 of it && "dots per inch."
  8246.     else
  8247.         request sysError
  8248.     end if
  8249. end buttonClick
  8250. to get printerRes
  8251.     linkDll "GDI"
  8252.         WORD     createIC    (STRING,STRING,STRING,STRING)
  8253.         INT    getDeviceCaps    (WORD,INT)
  8254.         INT     deleteDC     (WORD)
  8255.     end linkDLL
  8256.     linkDLL sysToolBookDirectory & "tb40win.dll"
  8257.         STRING GetWinIniVar     (STRING, STRING)
  8258.     end linkDLL
  8259.     LOGPIXELSX = 88 -- Windows constants
  8260.     LOGPIXELSY = 90 
  8261.     driverInfo = getWinIniVar("windows", "device")
  8262.     deviceName = item 1 of driverInfo
  8263.     if deviceName is NULL
  8264.         set sysError to "There is no printer attached."
  8265.         unlinkDLL "GDI"
  8266.         unlinkDLL sysToolBookDirectory & "tb40win.dll"
  8267.         return NULL
  8268.     end if
  8269.     deviceFile = item 2 of driverInfo
  8270.     devicePort = item 3 of driverInfo
  8271.     hDC = createIC(deviceFile,deviceName,devicePort,NULL)
  8272.     prnXRes = getDeviceCaps(hDC,LOGPIXELSX)
  8273.     prnYRes = getDeviceCaps(hDC,LOGPIXELSY)
  8274.     get deleteDC(hDC)
  8275.     unlinkDLL "GDI"
  8276.     unlinkDLL sysToolBookDirectory & "tb40win.dll"
  8277.     return prnXRes & "," & prnYRes
  8278. end printerRes
  8279. Windows and DOS versions
  8280. label
  8281. ASYM_BeenHere
  8282. Windows and DOS versionsE
  8283. This script can retrieve and display the version numbers for DOS and Windows. The Windows call GetVersion returns the running  versions of Windows and DOS in a packed format. This script makes the link, makes the call, and unpacks the information for you, displaying it in a readable form.
  8284. to handle buttonClick
  8285.     linkDLL "kernel"
  8286.         DWORD GetVersion()
  8287.     end linkDLL
  8288.     set verNum to GetVersion()
  8289.     set WverNum to verNum mod 65536
  8290.     set DverNum to verNum div 65536
  8291.     set majorNumber to WverNum mod 256
  8292.     set minorNumber to WverNum div 256
  8293.     set dmajorNumber to DverNum div 256
  8294.     set dminorNumber to DverNum mod 256
  8295.     request "Windows version:" && majorNumber & "." & minorNumber & CRLF & \
  8296.       "DOS version:" && dmajorNumber & "." & dminorNumber
  8297.       
  8298.     -- deal with dll refCount
  8299.     unlinkDLL "kernel"
  8300. end buttonClickk
  8301. Windows or WfW
  8302. label
  8303. ASYM_BeenHere
  8304. Windows or WfW1
  8305. This script distinguishes between Windows 3.1 and Windows for Workgroups. It checks to see if a driver necessary for Windows for Workgroups is loaded (wfwnet.drv), in order to determine which version of Windows is running. running.
  8306. to handle buttonClick
  8307.     linkDLL "kernel"
  8308.         WORD    getModuleHandle    (STRING)
  8309.     end linkDLL
  8310.     if getModuleHandle("wfwnet.drv") is NULL
  8311.         request "Running Windows"
  8312.     else
  8313.         request "Running Windows for Workgroups"
  8314.     end if
  8315.     unlinkDLL "kernel"
  8316. end buttonClickkkk
  8317. Outline
  8318. label
  8319. ASYM_BeenHere
  8320. Outline
  8321. Use this widget to create a field you can use as an outline at Reader level. 
  8322. At Author level, you can set the level of the text in the outline by typing Ctrl+Tab. When the outline field is copied and pasted into another book, it retrieves the resources for the plus and minus bitmaps from the first book.
  8323. outline
  8324.     Big green dogs
  8325.         Great Dane
  8326.             So-so Danes
  8327.             Lesser Danes
  8328.         Collie
  8329.         Doberman
  8330.     Small dogs
  8331.         Sheltie
  8332.         Wiener dog
  8333.     Froo froo dogs
  8334.         Chow
  8335.         Chihuahua
  8336.         Poodle
  8337.             Lap poodle
  8338.             Yappy poodle
  8339.             Snapping poodle
  8340.         Shitzu
  8341.     Cartoon Cats
  8342.         Hobbes
  8343.         Bill
  8344.         Fritz
  8345.     Presidential Cats
  8346.         Socks
  8347.         Bill
  8348. source
  8349. outline
  8350. tbk_wid_name
  8351. Book "D:\ARNOLD\OLDAPPS\LIBRARY.TBK"
  8352. oldBook
  8353.     Dogs
  8354.     Big green dogs
  8355.     Small dogs
  8356.     Froo froo dogs
  8357.     Cats
  8358.     Cartoon Cats
  8359.     Presidential Cats    Sheltie
  8360.         Wiener dog
  8361.     Froo froo dogs
  8362.         Chow
  8363.         Chihuahua
  8364.         Poodle
  8365.             Lap poodle
  8366.             Yappy poodle
  8367.             Snapping poodle
  8368.         Shitzu
  8369.     Cartoon Cats
  8370.         Hobbes
  8371.         Bill
  8372.         Fritz
  8373.     Presidential Cats
  8374.         Socks
  8375.         Bill
  8376. enterPage
  8377. author
  8378. reader
  8379. Book "D:\MTB35\SAMPLES\LIBRARY.TBK"
  8380. Outline Rearranger
  8381. label
  8382. ASYM_BeenHere
  8383. Outline Rearrangera
  8384. You can move individual textlines or whole sections, by dragging the textlines in the field.
  8385. Tabbed textlines can be dragged up or down, and whole sections can be moved by dragging the textline at the head of a section. The indicator is an obscured line with a line end on it. There is a field covered by the main field, and we use the bounds of a hotword in the hidden field to find the height of a line of text..
  8386. Outline_Rearranger
  8387. lineheight
  8388. hotfield
  8389. outfield
  8390. outline_rearranger
  8391. sizeSample
  8392. adjustsize
  8393. sized
  8394. enterpage
  8395. reader
  8396. -- initialize the 
  8397. sized
  8398. hotfield 
  8399. "sizeSample" 
  8400. outfield 
  8401. "outline_rearranger" 
  8402. ypix 
  8403. sysPageUnitsPerPixel
  8404. syssuspendmessages 
  8405. adjustsize 
  8406. ylineheight 
  8407. o,3) 
  8408. notifybefore 
  8409. notifyAfter 
  8410. Outline_Rearranger
  8411. tbk_wid_name
  8412. sizeSample
  8413. sizeSample
  8414. outline_rearranger
  8415. Frame Animation
  8416.     Introduction to Frame Animation
  8417.     Page Flipping
  8418.     Hiding and Showing objects
  8419. Moving Objects
  8420.     Move By
  8421.     Move To
  8422.     The Position Property
  8423. Useful Scripts
  8424.     Simulating Gravity
  8425.     Timing Animation
  8426.     Animating with Resources
  8427.     Simulating a Good 5 Cent Cigar
  8428.     Simulating a Good 5 Cent Cigar To
  8429.     The Position Property
  8430.     Simulating Gravity
  8431.     Timing Animation
  8432.     Simulating a Good 5 Cent Cigary
  8433.     Timing Animation    The Position Property
  8434. Moving Objects
  8435.     Move To
  8436.     Move By
  8437. marker
  8438. vertLoc
  8439. vertLoc b 
  8440. value
  8441.     ypix = 
  8442. syspageunitsperpixel
  8443. halfH 
  8444. B- 3*
  8445. reader
  8446. terpage
  8447. enterpage
  8448. Max Select Field
  8449. label
  8450. ASYM_BeenHere
  8451. Max Select FieldE
  8452. This widget limits the number of selectable lines in a multi-select list box.   
  8453. The handler can be placed in a system book or in the book or page script so it will work with more than one multi-select list box.  It takes one parameter, Num, which represents the maximum number of selections allowed.
  8454. To call the maxSelection handler use the following syntax:
  8455. to handle buttonClick    
  8456.     send MaxSelection 3
  8457. end buttonClick
  8458. MaxSelect
  8459. MaxSelect
  8460. tbk_wid_name
  8461. One One One
  8462. Two Two Two
  8463. Three Three Three
  8464. Four Four Four
  8465. Five Five Five
  8466. Ex Select Field
  8467. label
  8468. ASYM_BeenHere
  8469. Ex Select Field
  8470. The Ex Select widget allows for an exclusive selection, acting like a single-select list box inside a multi-select list box.  
  8471. The XSelect handler allows multiple selections in a list box as long as the specified line is not selected. Once the specified line is selected, all other lines in the list box are unselected. 
  8472. This handler can be placed in a system book or in the book or page script, so it will work with more than one multi-select list box.
  8473. The handler takes one parameter, XLine, which represents the line to make exclusive.
  8474. To call the Xselect handler use the following syntax:
  8475. to handle buttonClick    
  8476.     send Xselect 5
  8477. end buttonClickkkk
  8478. XLine
  8479. Ex Select
  8480. tbk_wid_name
  8481. One One One
  8482. Two Two Two
  8483. Three Three Three
  8484. Four Four Four
  8485. FiveFiveFive
  8486. f 1992 is a leap year.
  8487. -- if leap
  8488. itemOffset()
  8489. origPage
  8490. original
  8491. itemOffset()
  8492. label
  8493. itemOffset()G
  8494. A fast way to find the offset of an item in a list.  For example, itemOffset("e","a,b,c,d,e,f,g") would return "5"
  8495. Handlers:    itemOffset (<item>,<list>)
  8496. Parameters:
  8497. <item>:      The item whose offset you are looking for.
  8498. <list>:       The list in which you are looking.
  8499. Note: to find out if the item is in the list, check if itemOffset is greater than 0.....
  8500. -- finds the offset of an item in a list. 
  8501. to get itemOffset itm,lst
  8502.     step i from 1 to itemcount(lst)
  8503.         pop lst
  8504.         if itm = it
  8505.             return i
  8506.         end
  8507.     return 0
  8508. enddddddddddddddturn 0
  8509. ASYM_BeenHere
  8510. Display 2-D array values
  8511. request2Darray
  8512. request2Darray x[][]
  8513. Zretval
  8514. dimensions(x)
  8515. x[i][j] 
  8516. origPage
  8517. original
  8518. Display 2-D array values
  8519. label
  8520. Display 2-D array values
  8521. Often, when debugging a script using arrays, you may want to display the array at a certain point in your script.  This page has a handler for displaying the contents of two-dimensional arrays. 
  8522. Note that this also displays a standard method for walking through a 2D array.
  8523. The button to the right fills an array with the elements of the list in the field.
  8524. Once filled, it passes the array to the request2Darray handler (in this page script), which displays the contents of the array..ray.
  8525. arrayField
  8526. d,4,4/1/06
  8527. h,7,4/1/23
  8528. j,5,3/1/29
  8529. i,1,1/9/55
  8530. g,6,7/7/64
  8531. e,9,11/13/66
  8532. f,0,7/4/76
  8533. b,3,5/23/91
  8534. c,2,3/11/92
  8535. a,8,1/12/933
  8536. Display
  8537. krequest2DArray
  8538. arrayField
  8539. buttonClick
  8540. buttonClick
  8541. Zx[][]
  8542.     fill x 
  8543. "arrayField" 
  8544. ] order
  8545. request2DArray x
  8546. Display
  8547. ASYM_BeenHere
  8548. Add number of days to date
  8549. Add number of days to date
  8550. This handler adds a specified number of days to a provided date. Note that a negative number of days can be supplied to subtract a number of days.
  8551. Handler:    newDate (<original date>,<days to add>)
  8552. Parameters:
  8553. <original date>:    Base date to which you want to add days
  8554. <days to add>:    Number of days you want to add to <original date>
  8555. Returns the modified date.
  8556. -- function: newDate(<original date>,<number of days to add>)
  8557. -- Returns a date n days from a given date.  Pass it a date 
  8558. -- for the first parameter, followed by an integer (positive 
  8559. -- or negative) representing the number of days from that date
  8560. -- Example:  to find out the date 10 days ago
  8561. -- set x to newDate(sysdate,-10)
  8562. to get newDate origdate, days
  8563.     format date origdate as "seconds"
  8564.     increment origdate by (days*24*60*60)
  8565.     format date origdate as sysdateformat from "seconds"
  8566.     return origdate
  8567. endddddddddddddddddddddddddddddddddddddddddd
  8568. origPage
  8569. original
  8570. Add number of days to date
  8571. label
  8572. ASYM_BeenHere
  8573. 95051000165214669364226072
  8574. ASYM_TpID
  8575. Controlling volume of clips
  8576. label
  8577. ASYM_BeenHere
  8578. Controlling volume of clips
  8579. Clips have a property called mmVolume, which you can set before or during play of a clip. This example uses a dial widget to control the volume of a clip. The dial widget sends out a dialMove message, which the Play Clip button handles..with a no
  8580. Choose a clip, then play it while turning the dial to control the volume...
  8581. Play Clip
  8582. Play Clip
  8583. Clip to play
  8584. Clip Chooser
  8585. CdresetContents
  8586. enterpage
  8587. CdresetContents
  8588. clips
  8589. whatClip
  8590. resetContents
  8591. notifyBefore 
  8592. resetContents
  8593. notifyAfter 
  8594. [dropdownitems 
  8595.     clips = resourceList(
  8596. <> NULL
  8597. whatClip
  8598. &CRLF 
  8599. r"&"E&
  8600. dropDownItems 
  8601. clip "Asymetrix Logo"
  8602. clip "Asymetrix Logo"
  8603. clip "bird1"
  8604. clip "bird2"
  8605. clip "bird3"
  8606. clip "CD Audio"
  8607. clip "Chirp"
  8608. clip "lion"
  8609. clip "No No No"
  8610. clip "tiger"
  8611. clip "toad"
  8612. myStartAngle
  8613. myendAngle
  8614. myTallTicSpacing
  8615. scaleDial
  8616. tbk_wid_name
  8617. dialPos
  8618. dialMin
  8619. dialMax
  8620. startAngle
  8621. endAngle
  8622. numTics
  8623. tallTicSpacing
  8624. tbk_wid_props
  8625. tbk_wid_values
  8626. myNumTics
  8627. mydialMin
  8628. mydialMax
  8629. &!V!i
  8630. myRotation
  8631. struct
  8632. structInfo
  8633. 40433333333333333
  8634. 605.6666666666667
  8635. 808t[#
  8636. 10099999999999999
  8637. 854t+$
  8638. 100t;%
  8639. 96199999999999999
  8640. Display
  8641. dialMove
  8642. notifybefore dialMove pos
  8643. 100639676273476528
  8644. &=a*'
  8645. enterpage
  8646. dialMove
  8647. Aaz'n
  8648. dialMove
  8649. enddialMove
  8650. description only
  8651. description and example
  8652. topicName
  8653. description and script
  8654. Untitled
  8655. enterpage
  8656. pageName
  8657. templateButtons
  8658. label
  8659. subtopicname
  8660. topicName
  8661. chosen
  8662. cancel
  8663. keychar
  8664. cancel
  8665. -- initialize dialog box
  8666. "Untitled" 
  8667. "topicName"
  8668. B"description 
  8669. buttonclick 
  8670. -- sent 
  8671. user presses OK
  8672. pageName 
  8673. chosen 
  8674. "templateButtons"
  8675.         -- 
  8676. the specified 
  8677. label 
  8678. "subtopicname" 
  8679.     close 
  8680. -- handles OK 
  8681. escape 
  8682. keyEnter
  8683. origPage
  8684. original
  8685. label
  8686. ASYM_BeenHere
  8687. in,false
  8688. ThreeDeeRect
  8689. bottomLine
  8690. topLine
  8691. Topic name:
  8692. bottomLine
  8693. topLine
  8694. topicName
  8695. Description and Example
  8696. templateButtons
  8697. chosen
  8698. templates
  8699. buttonclick
  8700. buttonclick
  8701.     -- store selected 
  8702. a property 
  8703. chosen
  8704. "templates"
  8705. Description and Script
  8706. chosen
  8707. Description and Script
  8708. Description and &Script
  8709. Description Only
  8710. Description &Only
  8711. Description and Example
  8712. Description and &Example
  8713. Choose Template
  8714. templates
  8715. Description and script
  8716. This is a description. Blah, blah, blah. Boy could I use another cup of Joe. Nothing is worse than work coffee.
  8717. to handle buttonup
  8718.     do this 
  8719.         do that
  8720. description only
  8721. description and script
  8722. This is a description. Blah, blah, blah. Boy could I use another cup of Joe. Nothing is worse than work coffee. I've had so many cups of it already that I can see through time. Maybe some decaf is in orderrican butt.
  8723. Description and example
  8724. This is a description. Blah, blah, blah. Boy could I use another cup of Joe. Nothing is worse than work coffee. I've had so many cups of it already that I can see through time. Maybe some decaf is in order
  8725. to handle buttonup
  8726.     do this 
  8727.         do that
  8728. buttonclick
  8729. buttonclick
  8730. cancel
  8731. buttonclick
  8732. buttonclick
  8733. Cancel
  8734. Untitleda web page
  8735. description and script
  8736. Get number of days in month
  8737. Get number of days in month
  8738. This handler returns the number of days there are in a month of a given year. Note that this handler requires the isLeapYear() handler, supplied below.
  8739. Handler:    daysInMonth (<month>,<year>)
  8740. Parameters:
  8741. <month>:    An integer representing the month
  8742. <year>:        A four-digit year
  8743. Returns the number of days in the supplied month for that year.
  8744. -- function: daysInMonth(<month>,<four-digit year>)
  8745. -- Returns the number of days in a month.   
  8746. -- NOTE: this function requires 4 digits for the year.  
  8747. -- This function calls the function leapYear() defined below.
  8748. -- example: to find out how many days are in February, 1992 
  8749. -- set x to daysInMonth(2,1992) 
  8750. to get daysInMonth m,y 
  8751.     if m <> 2 
  8752.         return item m of "31,28,31,30,31,30,31,31,30,31,30,31" 
  8753.     else 
  8754.         if isLeapYear(y) 
  8755.             return 29 
  8756.         else 
  8757.             return 28 
  8758.         end
  8759. -- Returns TRUE if y is a leap year, FALSE if not.
  8760. -- NOTE: this fuction requires a four digit year.
  8761. -- Example:  Find out if 1992 is a leap year.
  8762. -- if leapYear(1992)
  8763. to get isLeapYear y
  8764.     if ((y mod 4 = 0 and y mod 100 <> 0) or (y mod 400 = 0))
  8765.         return TRUE
  8766.     else
  8767.         return FALSE
  8768. origPage
  8769. original
  8770. Get number of days in month
  8771. label
  8772. ASYM_BeenHere
  8773. Create Full-Text Search Index
  8774. label
  8775. Create Full-Text Search Indexndex
  8776. Creates an index of the current book for full-text searches. The index will use the default settings file (found in the Multimedia ToolBook directory).
  8777. The index will be created in the same directory and have the same name as the the current book.
  8778. Example of use:
  8779.     send buildIndexxxxxxxxxxxxxx
  8780. -- this handler builds a basic full-text search index of the current book.
  8781. to handle buildIndex
  8782.     -- display an hourglass cursor... this can take a while.
  8783.     sysCursor = 4
  8784.     -- link the dlls required to build an index
  8785.     linkDll "fts40mtb.dll"
  8786.         STRING ftsRemoveIndex           ( STRING )
  8787.         DWORD  ftsInitIndex             ( STRING, STRING, WORD )
  8788.         LONG   ftsAddContext            ( DWORD, STRING )
  8789.         STRING ftsAddPage               ( DWORD, STRING, STRING, STRING, LONG )
  8790.         STRING ftsAddTextToSection      ( DWORD, STRING, STRING )
  8791.         STRING ftsAddSectionsToPage     ( DWORD )
  8792.         STRING ftsBuildIndex            ( DWORD )
  8793.     -- get the name of the index to use    
  8794.     indexName = name of this book
  8795.     if indexName = NULL
  8796.         request "You must save this book before building an index for it."
  8797.         send cleanExit
  8798.     while "." is in indexName
  8799.         clear last char of indexName
  8800.     -- remove any existing index of that name
  8801.     get ftsRemoveIndex(indexName)
  8802.     -- initialize the index
  8803.     indexHandle = ftsInitIndex(indexName,sysToolbookDirectory&"default.sst",sysWindowHandle)
  8804.     if it = 0
  8805.         -- if there is an error stop this process
  8806.         request "Error initializing index"
  8807.         send cleanExit
  8808.     -- step through the pages of this book
  8809.     step i from 1 to pageCount of this book
  8810.         pageRef = page i of this book
  8811.         bgRef = parent of pageRef
  8812.         -- if this background is different than the previous one
  8813.         -- get a list of objects on this background
  8814.         if bgRef <> curRef
  8815.             curRef = bgRef
  8816.             bgObs = getObjectList(bgRef,"field,recordField",FALSE)
  8817.         end
  8818.         -- get a title to associate with this page
  8819.         title = name of pageRef
  8820.         if title = NULL
  8821.             title = pageRef
  8822.         end
  8823.         -- add the page to the index
  8824.         get ftsAddPage(indexHandle,pageRef,title,"",1)
  8825.         if it = NULL
  8826.             request "Error Adding Page"
  8827.             send cleanExit
  8828.         end
  8829.         -- step through the list of fields and recordFields on this background
  8830.         -- and add their text to the default section of the index
  8831.         step j from 1 to itemCount(bgObs)
  8832.             curObj = item j of bgObs
  8833.             if object of curObj = "recordField"
  8834.                 -- to get the text of a recordField we have to refer to a page rather than the background
  8835.                 -- words 1 to 4 of a recordField reference are:  "recordField id X of"
  8836.                 curObj = words 1 to 4 of curObj && pageRef
  8837.             end
  8838.             textExp = "richText of"&&curObj
  8839.             get ftsAddTextToSection(indexHandle,textExp,"")
  8840.         end
  8841.         -- get a list of fields on this page and add their text to the default section of the index
  8842.         pgObs = getObjectList(pageRef,"field",FALSE)
  8843.         step j from 1 to itemcount(pgObs)
  8844.             curObj = item j of pgObs
  8845.             textExp = "richText of"&&curObj
  8846.             get ftsAddTextToSection(indexHandle,textExp,"")
  8847.         end
  8848.         -- add the text placed into sections to the index
  8849.         get ftsAddSectionsToPage(indexHandle)
  8850.     --build the index
  8851.     get ftsBuildIndex(indexHandle)
  8852.     if it = NULL
  8853.         request "Failed to build index."
  8854.     else
  8855.         request "Index successfully built."
  8856.     send cleanExit
  8857. end buildIndex
  8858. -- this process will exit the build process cleanly
  8859. -- (removing the DLLs, etc.)
  8860. to handle cleanExit
  8861.     sysCursor = 1
  8862.     unlinkDLL "fts40mtb.dll"
  8863.     break to system
  8864. end cleanExit
  8865. ASYM_BeenHere
  8866. {{{{{{{p{
  8867. wwwwwp
  8868. wwwwwp
  8869. wwwwwwp
  8870. wwwwwwwp
  8871. wwwwwwwp
  8872. wwwwwwwp
  8873. wwwwwwwp
  8874. wwwwwwwp
  8875. Perform Full-Text Search
  8876. label
  8877. Perform Full-Text Search
  8878. -- this handler performs a basic search procedure on a full-text search index        
  8879. to get searchIndex queryString
  8880.     system lastQuery
  8881.     system DWORD numHits, currentHit
  8882.     local pageRef
  8883.     if queryString <> NULL
  8884.         sysCursor = 4
  8885.         -- link the functions required for the search
  8886.         linkDll "fts40mtb.dll"
  8887.             DWORD  ftsOpenIndex             ( STRING )
  8888.             STRING ftsCloseIndex            ( DWORD )
  8889.             DWORD  ftsQuery                 ( DWORD, STRING, DWORD )
  8890.             STRING ftsMatchRef              ( DWORD, DWORD, DWORD )
  8891.         end
  8892.         -- identify the index to search
  8893.         indexName = name of this book
  8894.         while "." is in indexName
  8895.             clear last char of indexName
  8896.         end
  8897.         -- open the index
  8898.         indexHandle = ftsOpenIndex(indexName)
  8899.         if indexHandle = 0
  8900.             request "Could not open index"
  8901.             send cleanExit
  8902.             return NULL
  8903.         end
  8904.         --make the query
  8905.         numHits = ftsQuery(indexHandle,queryString,0)
  8906.         if numHits > 0
  8907.         -- there was at least one hit
  8908.             if queryString = lastQuery
  8909.             -- the user is searching for the same string as the last search
  8910.                 increment currentHit
  8911.                 if currentHit > numHits
  8912.                     currentHit = 1
  8913.                 end
  8914.             else
  8915.                 currentHit = 1
  8916.                 lastQuery = queryString
  8917.             end
  8918.             -- get the page reference of the currentHit
  8919.             pageRef = ftsMatchRef(indexHandle,currentHit,0)
  8920.         end
  8921.     -- close the index
  8922.     get ftsCloseIndex(indexHandle)        
  8923.     send cleanExit
  8924.     return pageRef
  8925. -- this handler exits the search process cleanly
  8926. -- (unlinking DLLs etc.)
  8927. to handle cleanExit
  8928.     sysCursor = 1
  8929.     unlinkDLL "fts40mtb.dll"
  8930. enddddd
  8931.     get ftsCloseIndex(indexHandle)        
  8932.     send cleanExit
  8933.     return pageRef
  8934. -- this handler exits the search process cleanly
  8935. -- (unlinking DLLs etc.)
  8936. to handle cleanExit
  8937.     sysCursor = 1
  8938.     unlinkDLL "fts30mtb.dll"
  8939. This handler performs a search using an existing full-text search index. The index is assumed to be in the same directory and have the same name as the current book.
  8940. This handler takes one parameter - the text for which to search - and returns a page reference for the first page on which that text appears. Searching with the same string again will return subsequent pages on which the text appears.
  8941. Example of use:
  8942. to handle buttonClick
  8943.     system lastQuery
  8944.     ask "Search For:" with lastQuery
  8945.     queryString = it
  8946.     pageRef = searchIndex(queryString)
  8947.     if isObject(pageRef)
  8948.         go to pageRef
  8949.     else
  8950.         request queryString&&"not found."
  8951. ASYM_BeenHere
  8952. Playing MIDI Directly
  8953. label
  8954. ASYM_BeenHere
  8955. Playing MIDI Directly
  8956. The button below plays MIDI sounds by making calls directly to the Windows Multimedia System DLL (mmsystem.dll)
  8957. Click and hold Play MIDI to play a MIDI sound.
  8958. Changing the Note field changes the note of the sound to be played.
  8959. Changing the Program field changes what instrument plays the note...
  8960. playMidi
  8961. Play MIDI
  8962. integerUp
  8963. ,"J'"
  8964. program
  8965. spinUp
  8966. w%spinUp
  8967. buttonDown
  8968. w%spinUp
  8969. buttonDoubleClick
  8970. w%spinUp
  8971. buttonStillDown
  8972. spinUp
  8973. "program" < 39
  8974. integerDown
  8975. program
  8976. spinDown
  8977. |spinDown
  8978. buttonDown
  8979. |spinDown
  8980. buttonDoubleClick
  8981. |spinDown
  8982. buttonStillDown
  8983. spinDown
  8984. "program" > 0
  8985. program
  8986. integerUp
  8987. spinUp
  8988. w%spinUp
  8989. buttonDown
  8990. w%spinUp
  8991. buttonDoubleClick
  8992. w%spinUp
  8993. buttonStillDown
  8994. spinUp
  8995. "note" < 127
  8996. integerDown
  8997. spinDown
  8998. |spinDown
  8999. buttonDown
  9000. |spinDown
  9001. buttonDoubleClick
  9002. |spinDown
  9003. buttonStillDown
  9004. spinDown
  9005. "note" > 40
  9006. Program:
  9007. Note:am:
  9008. keyboard
  9009. custom,editWidget
  9010. boolean
  9011. boolean
  9012. list,0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15
  9013. list,0,1,2,3,4,5,6,7,8
  9014. list,0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,127
  9015. list,0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,127
  9016. tbk_wid_values
  9017. editWidget
  9018. sustain
  9019. gliss
  9020. device
  9021. channel
  9022. program
  9023. volume
  9024. tbk_wid_props
  9025. MIDI Keyboard
  9026. tbk_wid_name
  9027. dlgInit
  9028. 524480,14,25,25,138,134,,,Dialog,8,MS Sans Serif,,3,3,76,38,3596,1342177287,128,Keyboard Settings,0,,3,43,77,74,3599,1342177287,128,MIDI Settings,0,,8,55,37,10,3604,1342177280,130,Text,0,,8,70,37,10,3605,1342177280,130,Text,0,,8,86,37,10,3606,1342177280,130,Text,0,,8,101,37,10,3607,1342177280,130,Text,0,gliss,8,15,48,9,3602,1342242819,128,&Gliss,0,sustain,8,27,48,9,3603,1342242819,128,&Sustain,0,program,46,54,27,121,3608,1350631491,133,,0,volume,46,69,27,121,3609,1350631491,133,,0,channel,46,84,23,66,3610,1350631491,133,,0,device,46,99,23,44,3611,1350631491,133,,0,ok,85,8,47,13,1,1342242817,128,OK,0,cancel,85,24,47,13,2,1342242816,128,Cancel,0
  9029. dlgBox
  9030. gliss
  9031. sustain
  9032. program
  9033. volume
  9034. channel
  9035. device
  9036. Keyboard Help
  9037. keyboard help
  9038. buttonClick
  9039. buttonClick
  9040. "keyboard help"
  9041. Keyboard Help
  9042. Keyboard Help
  9043. buttonClick
  9044. buttonClick
  9045. By sending messages directly to the DLL, the user is given much more precision. 
  9046. You can use the Ctrl key somewhat like the sustain pedal on a piano. Pressing Ctrl+Shift when you click a key acts as a MIDI "panic button" and shuts off any keys that might be ringing.
  9047. You can set parameters by having the "reader rightclick" set to true and in reader mode using the Custom edit button on the right-click tool bar for any of the keys or the group "keyboard." If you are in author mode, you can set these same parameters from the property browser for the keyboard group. osing "Property Browser" from the Tools menu. the keyboard group and choosing "Property Browser" from the Tools menu.        
  9048. customEdit
  9049. enterPage
  9050. reader
  9051. leavePage
  9052. author
  9053. Show all objects of page
  9054. label
  9055. Show all objects of page
  9056. The script below displays all objects on the current page regardless of whether they are in groups.
  9057. to handle showAll
  9058.     show getObjectList(this page,null,false)
  9059. ASYM_BeenHere
  9060. Disabling task switching
  9061. label
  9062. Disabling task switching#
  9063. The script below allows you to turn on or off task-switching. When task-switching is on the user may not change tasks by using Alt+Tab, Alt+Shift+Tab, or Ctrl+Esc. They may still activate other windows by clicking on them.
  9064. To turn off task-switching:
  9065.     set taskSwitching() to FALSE
  9066. To turn task-switching back on:
  9067.     set taskSwitching() to TRUE
  9068. to set taskSwitching to LOGICAL mode
  9069.     if mode
  9070.         untranslateWindowMessage 0x0112 for sysWindowHandle
  9071.     else
  9072.         translateWindowMessage for sysWindowHandle
  9073.             on 0x0112    send WM_SYSCOMMAND
  9074.         end
  9075. to handle WM_SYSCOMMAND    hWnd, wMsg, wp, lpLo, lpHi
  9076.     if wp <> 0xF050 and wp <> 0xF040 and wp <> 0xF130
  9077.       --SC_PREVWINDOW, SC_NEXTWINDOW, and SC_TASKLIST
  9078.         forward to system
  9079. ASYM_BeenHere
  9080. QUICKENW
  9081. UTILITY
  9082. WINCAKE
  9083. WINDOWS
  9084. WINFAX
  9085. WINWORDS
  9086. INPUT
  9087. INSTVER
  9088. LISTHORZ
  9089. LOWPASS
  9090. MACROHLP
  9091. MAKEAPP
  9092. MCITEST
  9093. MEMORY
  9094. MIDIMON
  9095. MULTIPAD
  9096. MUSCROLL
  9097. MYPAL
  9098. MYSCRIB
  9099. OUTPUT
  9100. OWNCOMBO
  9101. OWNERB
  9102. PALETTE
  9103. PENCNTL
  9104. PENPAD
  9105. PRNTFILE
  9106. PROFILER
  9107. QWGDEMO
  9108. REVERSE
  9109. ROTARY
  9110. SELECT
  9111. SHOWDIB
  9112. SHOWGDI
  9113. SNOOP
  9114. SORTDEMO
  9115. Icon Resources
  9116. Save Text to a File (ASCII or RT
  9117. Search and replace in a string
  9118. Remove given char from string
  9119. Remove given char from stringg
  9120. This handler removes all instances of the specified character from the specified string.
  9121. Handler: stripChar(<character to strip>,<string to strip it from>)
  9122. Parameters:
  9123. <character to strip>:    any single character
  9124. <string to strip it from>:    the string from which to strip the character
  9125. Returns the stripped string...
  9126. -- removes all instances of chr from strng
  9127. to get stripChar chr,strng
  9128.     set chrLoc to offset(chr,strng)
  9129.     while chrLoc > 0
  9130.         clear char chrLoc of strng
  9131.         set chrLoc to offset(chr,strng)
  9132.     return strng
  9133. stripChar
  9134. stripChar chr,strng
  9135. chrLoc 
  9136. origPage
  9137. original
  9138. Remove given char from string
  9139. label
  9140. ASYM_BeenHere
  9141. Play clip on enter page
  9142. label
  9143. Play clip on enter page
  9144. -- notifies for showing and closing clips
  9145. notifyAfter enterPage
  9146.     -- these scripts could go in any object 
  9147.     -- on the page or background
  9148.     -- clipRef of this page would 
  9149.     -- already have the necessary reference
  9150.     clipRef = clipRef of this page
  9151.     if clipRef <> NULL
  9152.         mmOpen clipRef wait
  9153.         -- use this if the media is on a cd-rom
  9154. --        mmCue clipRef wait
  9155.         -- show the first frame
  9156.         mmPlay clipRef in stage "myStage" of this background
  9157. end enterPage
  9158. notifyBefore leavePage
  9159.     clipRef = clipRef of this page
  9160.     if (clipRef <> null) and (mmIsOpen of clipRef)
  9161.         mmClose clipRef
  9162.     end if
  9163. end leavePage
  9164. These scripts play a clip upon entering a page and close it upon leaving the page. You could paste these scripts into any object. The clip to be played is identified by a user-property of the page and the clip is played in a stage object of the background.
  9165. ASYM_BeenHere
  9166. Chirp
  9167. CD Audio
  9168. bird1
  9169. bird2
  9170. bird3
  9171. tiger
  9172. No No No
  9173. Asymetrix Logo
  9174. chirp.wav
  9175. animals.wav
  9176. animals.wav
  9177. animals.wav
  9178. animals.wav
  9179. animals.wav
  9180. animals.wav
  9181. animals.wav
  9182. asym01.avi
  9183. AutoPageName
  9184. Auto Page Name
  9185. label
  9186. ASYM_BeenHere
  9187. Auto Page NameI
  9188. This field automatically displays the current page name.
  9189. This widget field uses a notifyBefore enterPage  handler to set the text of the field to the name of the page. In order to see the field update if you name a page, you must send the enterPage  message, or navigate away from the page and then return to it.d then return to it.turn to it..
  9190. autoPageName
  9191. enterPage
  9192. notifyBefore 
  9193. autoPageName
  9194. tbk_wid_name
  9195. tbk_wid_values
  9196. AutoPageName
  9197. enterPage
  9198. Auto Page Number
  9199. label
  9200. ASYM_BeenHere
  9201. Auto Page NumberE
  9202. This field automatically displays the current page number.and page name..
  9203. This widget field uses a notifyBefore enterPage  handler to set the text of the field to the number of the page. It must be activated by an enterPage  message.
  9204. autoPageNumber
  9205. enterPage
  9206. notifyBefore 
  9207. autoPageNumber
  9208. tbk_wid_name
  9209. tbk_wid_values
  9210. enterPage
  9211. Auto Buttons
  9212. label
  9213. Previous
  9214. First
  9215. Auto ButtonsU
  9216. ToolBook automatically enables and disables these buttons. In the example below, they work on the page, but they should be pasted onto a background. ToolBook uses the same script and user properties to enable and disable these buttons depending on what page the buttons are on.
  9217. To get  and to set  handlers determine what page ToolBook navigates to when the button is clicked and the page the button is disabled on. The caption of the button is also the actual command.
  9218. Tools30.sbk includes information for widgets of this kind, and you can edit them from that sysBook.
  9219. Make sure tools30.sbk is a system book. Right-click the button, click the Custom edit button on the right-click tool bar (just left of the Help button), and then double-click the value for the property in the "Browser" that appears.t-click tool bar (just left of the Help button), and then double-click the value for the property in the "Browser" that appears.
  9220. AutoButtons
  9221. AutoButtons
  9222. tbk_wid_name
  9223. autoDisable Navigation button
  9224. tbk_wid_name
  9225. level
  9226. direction
  9227. disablePage
  9228. tbk_wid_props
  9229. list,background,book
  9230. list,Next,Previous,First,Last
  9231. tbk_wid_values
  9232. background
  9233. prop_level
  9234. direction
  9235. prop_disablePage
  9236. H    ^    \
  9237. autoDisable Navigation button
  9238. tbk_wid_name
  9239. level
  9240. direction
  9241. disablePage
  9242. tbk_wid_props
  9243. list,background,book
  9244. list,Next,Previous,First,Last
  9245. tbk_wid_values
  9246. background
  9247. prop_level
  9248. direction
  9249. First
  9250. prop_disablePage
  9251. Previous
  9252. autoDisable Navigation button
  9253. tbk_wid_name
  9254. level
  9255. direction
  9256. disablePage
  9257. tbk_wid_props
  9258. list,background,book
  9259. list,First,Previous,Next,Last
  9260. tbk_wid_values
  9261. background
  9262. prop_level
  9263. direction
  9264. prop_disablePage
  9265. autoDisable Navigation button
  9266. tbk_wid_name
  9267. level
  9268. direction
  9269. disablePage
  9270. tbk_wid_props
  9271. list,background,book
  9272. list,Next,Previous,First,Last
  9273. tbk_wid_values
  9274. background
  9275. prop_level
  9276. direction
  9277. First
  9278. prop_disablePage
  9279. First
  9280. enterPage
  9281. ASYM_BeenHere
  9282. Tab Widget
  9283. label
  9284. ASYM_BeenHere
  9285. Tab Widget    
  9286. This widget can display from 1 to 6 tabs as shown below.]
  9287. Pressing a tab sends the tabPressed message with the parameter of the tab number pressed.  Currently, this message is handled in the widget; you'll have to forward the message if you want to handle it at the page or background.  
  9288. The widget should resize gracefully no matter what you do.  Use the Group editor to resize the individual tabs.  All handlers are in the folder group script. You can set the properties of this widget in MTB40.sbk. 
  9289. To change the number of tabs, set numTabs of the widget to a number between 1 and 6.  
  9290. Note: To add more than 6 tabs, see comments in the folder group script.
  9291. To change the height of the tabs, set tabHeight of the widget to a number in page units. (Currently it's at 275.)
  9292. To change the selected tab without clicking the tab itself, set tabMode of the widget to the appropriate number.
  9293. To change the amount of space between each tab, set tabSpace of the widget to a number in page units.
  9294. To change the labels on the tabs, change the caption of the button in the tab group using the right-click menu.u.button in the tab group using the right-click menu.i
  9295. folder
  9296. mytabheight
  9297. myNumTabs
  9298. myTabMode
  9299. myTabSpace
  9300. tbk_wid_name
  9301. numTabs
  9302. tabHeight
  9303. tabMode
  9304. tabSpace
  9305. tbk_wid_props
  9306. tbk_wid_values
  9307. obtype
  9308. tabHighlight
  9309. tabLabel
  9310. obtype
  9311. tabHighlight
  9312. tabLabel
  9313. obtype
  9314. tabHighlight
  9315. tabLabel
  9316. obtype
  9317. tabHighlight
  9318. tabLabel
  9319. obtype
  9320. tabHighlight
  9321. tabLabel
  9322. obtype
  9323. tabHighlight
  9324. tabLabel
  9325. highlight
  9326. Content Buttons
  9327. label
  9328. Content Buttons
  9329. The buttons below act as a table of contents or an outline.
  9330. The chapter headings on the left recognize their associated pages. The "buttons" (they are actually fields) on the right navigate to the pages with those names. Use the following command in the Command window to use the field at the upper-right to set the two levels of the outliner: set makeOutline of group tableOfContents to text of field "outline". Type Ctrl+Tab to indent subordinate items below the top-level text.
  9331. outline
  9332. outline
  9333. tbk_wid_name
  9334.     Poodles
  9335.     Great Danes
  9336.     So-so Danes
  9337.     Siamese cats
  9338.     Fussy cats
  9339.     Decorator cats
  9340.     Cats who love dogs
  9341.     Gold fish
  9342.     Silver fish
  9343.     Sushiiiiiiiih sushihhhhhh
  9344. tableOfContents
  9345. tableOfContents
  9346. tbk_wid_name
  9347. Chapters
  9348. chapter1
  9349. Poodles
  9350. Great Danes
  9351. So-so Danes
  9352. topics
  9353. pageID
  9354. Dogse Animations
  9355. chapter2
  9356. pageID
  9357. Siamese cats
  9358. Fussy cats
  9359. Decorator cats
  9360. Cats who love dogs
  9361. topics
  9362. Catsng Objectsns
  9363. chapter3
  9364. Gold fish
  9365. Silver fish
  9366. Sushi
  9367. topics
  9368. pageID
  9369. FishsesScriptsls
  9370. chapter4
  9371. pageID
  9372. Chickens                                        26
  9373. Goats                                        25
  9374. topics
  9375. Farm Animals
  9376. chapter5
  9377. chapter5'
  9378. chapter6
  9379. chapter6
  9380. chapter7
  9381. chapter7
  9382. chapter8
  9383. chapter8M
  9384. Topics
  9385. topic1
  9386. pageId
  9387. Poodles cats                                        26                            59
  9388. topic2
  9389. pageId
  9390. Great DanesShowing                                        253
  9391. topic3
  9392. pageId
  9393. So-so Danesatsanesouces                                        61
  9394. topic4
  9395. pageId
  9396. Cats who love dogs                    62
  9397. topic5
  9398. pageId
  9399. Move To                                        57
  9400. topic6
  9401. pageId
  9402. Moving on Idle                                        64
  9403. topic7
  9404. pageId
  9405. Tonyc7r7[
  9406. topic8
  9407. pageId
  9408. Barbara8
  9409. topic9
  9410. topic9r8e
  9411. topic10
  9412. topic108
  9413. bracket
  9414. joiner
  9415. ASYM_BeenHere
  9416. Validate Numerical Data, 1
  9417. label
  9418. Validate Numerical Data, 1o
  9419. These widgets validate numeric data when the user leaves the field..
  9420. The widget fields will only accept data of the type described in the fields to the left of the widgets. The widget tests the data for the valid type when the user leaves the field.
  9421. LeaveField_Number
  9422. The value in the field must be a number.
  9423. leaveField
  9424. xisType(REAL, 
  9425. "The value 
  9426. must be a 
  9427. LeaveField_Number
  9428. tbk_wid_name
  9429. 034.344r
  9430. LeaveField_Integer
  9431. The value in the field must be an integer.
  9432. leaveField
  9433. x(isType(REAL, 
  9434. k1) = 0)
  9435. "The value 
  9436. must be 
  9437. integer."
  9438. LeaveField_Integer
  9439. tbk_wid_name
  9440. -123.5.444444
  9441. LeaveField_PosNumber
  9442. The value in the field must be a positive number.
  9443. leaveField
  9444. x(isType(REAL, 
  9445. "The value 
  9446. must be a positive 
  9447. LeaveField_PosNumber
  9448. tbk_wid_name
  9449. 55.5444444444
  9450. LeaveField_PosInt
  9451. The value in the field must be a positive integer.
  9452. leaveField
  9453. x(isType(REAL, 
  9454. k1 = 0)
  9455. "The value 
  9456. must be a positive integer."
  9457. LeaveField_PosInt
  9458. tbk_wid_name
  9459. 54345.5765444
  9460. Number:
  9461. Integer:
  9462. Positive Number:
  9463. Positive Integer:
  9464. bitamp
  9465. sequencer
  9466. overlay
  9467. animation
  9468. digitalVideo
  9469. cdAudio
  9470. photoCD
  9471. videoDisk
  9472. waveAudio
  9473. minus
  9474. minus
  9475. Validate Text, 1
  9476. label
  9477. ASYM_BeenHere
  9478. Validate Text, 1
  9479. These widgets validate text when the user leaves the field..
  9480. The widget fields will only accept data of the type described in the fields above the widgets. The widget tests the data for the valid type when the user leaves the field. 
  9481. The first widget uses a pattern editable from the script. The third and fourth widgets use the sysDateFormat and sysTimeFormat.meFormat.
  9482. LeaveField_Pattern
  9483. ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz
  9484. string does not match key:
  9485. FALSE
  9486. NNN-**-AA-NNN
  9487. valid
  9488. string
  9489.  ,.-*e
  9490. tempKey
  9491. alpha
  9492. numeric
  9493. seperator
  9494. 0123456789
  9495. leaveField
  9496.     -- A key 
  9497. consists 
  9498. arbitray length 
  9499. four different 
  9500.     -- "N" means the 
  9501. that 
  9502. must be a 
  9503.     -- "A" 
  9504. (alpha.
  9505.     -- "-" 
  9506. 9seperator.
  9507.     -- Anything 
  9508. (we used "*") 
  9509. c"I don't care".
  9510.     -- Use 
  9511. establish your own 
  9512. = "NNN-**-AA-
  9513.     tempKey = key
  9514.  = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz"
  9515.     numeric = "0123456789"
  9516.  = " ,.-*e"
  9517.     valid = TRUE
  9518. FFALSE
  9519. does 
  9520. xmatch key:" && 
  9521. LeaveField_Pattern
  9522. tbk_wid_name
  9523. 234-s@-WE-234444
  9524. LeaveField_Whitespace
  9525. 2,    "L
  9526. ,"JA"
  9527. ,"Ja"
  9528. ,&H.&
  9529. The characters in the field must all be in the alphabet.
  9530. leaveField
  9531. = 32 
  9532. = 9)) 
  9533. < 65) 
  9534. > 90 
  9535. < 97) 
  9536. > 122) 
  9537. "The 
  9538. must 
  9539. alphabet."
  9540. LeaveField_Whitespace
  9541. tbk_wid_name
  9542. Foobar Barfoorrrrrrrrr
  9543. LeaveField_Date
  9544. not a valid date, use:
  9545. leaveField
  9546. xisType(
  9547. xa valid 
  9548. r, use:" && 
  9549. LeaveField_Date
  9550. tbk_wid_name
  9551. 1/1/6555
  9552. LeaveField_Time
  9553. not a valid time, use:
  9554. leaveField
  9555. xisType(
  9556. xa valid 
  9557. I, use:" && 
  9558. LeaveField_Time
  9559. tbk_wid_name
  9560. 12:00:00 AM
  9561. Pattern match:
  9562. Alpha - whitespace:
  9563. Date:
  9564. Time:
  9565. Bring up the Command Window
  9566. Bring up the Command Window
  9567. This one line script brings up the Command Window without using the Command menu item or the Shift + F3 key.  Often you will want to remove menu items that you aren't using at Author level, but you still need the Command window while working.
  9568. origPage
  9569. to handle buttonClick
  9570.    show commandWindow
  9571. end buttonClick
  9572. original
  9573. Bring up the Command Window
  9574. label
  9575. ASYM_BeenHere
  9576. Bring up the Command Window
  9577. Get day of week from date
  9578. Validate Numerical Data, 2
  9579. label
  9580. ASYM_BeenHere
  9581. Validate Numerical Data, 2
  9582. The numerical value is validated after each keystroke.
  9583. The widget fields will only accept data of the type described in the fields to the left of the widgets. The widget tests the data after each keystroke.
  9584. Keystroke_Number
  9585. 1234567890-+
  9586. 1234567890
  9587. characterPosition
  9588. keyChar
  9589. key, isShift, isControl
  9590. ZSTRING characterTyped
  9591.  = ansitoChar(
  9592.     numberDigits = 
  9593.     characterPosition = 
  9594. caretLocation
  9595. j = "."
  9596. ~(".", 
  9597. ) = 0 
  9598. h> 0 
  9599. X> 1)
  9600. "1234567890-+"
  9601. "1234567890"
  9602. key = 
  9603. Keystroke_Number
  9604. tbk_wid_name
  9605. 4254.7644444444444444
  9606. Keystroke_Int
  9607. 1234567890-+
  9608. 1234567890
  9609. keyChar
  9610. key, isShift, isControl
  9611. ZSTRING characterTyped
  9612. "1234567890"
  9613. caretLocation 
  9614. "1,0" 
  9615. "1234567890-+"
  9616. Keystroke_Int
  9617. tbk_wid_name
  9618. -567563
  9619. Keystroke_PosNum
  9620. 1234567890
  9621. 1234567890+
  9622. keyChar
  9623. key, isShift, isControl
  9624. ZSTRING characterTyped
  9625.  = ansitoChar(
  9626.     numberDigits = 
  9627. "1234567890+"
  9628. _ = "." 
  9629. ~(".", 
  9630. ) = 0 
  9631. "1234567890"
  9632. Keystroke_PosNum
  9633. tbk_wid_name
  9634. 98.56577577776565777
  9635. Keystroke_PosInt
  9636. numberDigits
  9637. 1234567890
  9638. 1234567890+
  9639. keyChar
  9640. key, isShift, isControl
  9641. ZSTRING characterTyped
  9642.  = ansitoChar(
  9643.     numberDigits = 
  9644. "1234567890+"
  9645. "1234567890"
  9646. Keystroke_PosInt
  9647. tbk_wid_name
  9648. 8765408765444
  9649. Number:
  9650. Integer:
  9651. PosNum:er
  9652. PosInt:
  9653. Spin controls
  9654. origPage
  9655. original
  9656. Spin controls
  9657. label
  9658. Spin controls
  9659. Below are some standard spin controls for selecting an integer, date, or time. To use the date and time spinners, click on the segment of the date or time (e.g., month, minute) that you want to increment or decrement.
  9660. Try out the spinners on the right. 
  9661. To use the date and time spinners, first click on the segment of the date or time (e.g., month, minute) that you want to increment or decrement.
  9662. integerUp
  9663. integer
  9664. spinUp
  9665. w%spinUp
  9666. buttonDown
  9667. w%spinUp
  9668. buttonDoubleClick
  9669. w%spinUp
  9670. buttonStillDown
  9671. spinUp
  9672. "integer"
  9673. integerDown
  9674. integer
  9675. spinDown
  9676. |spinDown
  9677. buttonDown
  9678. |spinDown
  9679. buttonDoubleClick
  9680. |spinDown
  9681. buttonStillDown
  9682. spinDown
  9683. "integer"
  9684. integer
  9685. dateButtons
  9686. decrement
  9687. dateUp
  9688. increment
  9689. month
  9690. month
  9691. actionItem
  9692. buttonDown
  9693. buttondoubleclick
  9694. buttonStillDown
  9695. "dateUp"
  9696. actionItem 
  9697. selectedHotwords 
  9698. "day"
  9699. "month"
  9700. "year"
  9701. dateUp
  9702. dateDown
  9703. increment
  9704. evaluate(day)
  9705. 03 / 13 / 944
  9706. month
  9707. timeButtons
  9708. decrement
  9709. timeUp
  9710. ;seconds
  9711. increment
  9712. seconds
  9713. minute
  9714. minute
  9715. actionItem
  9716. buttonDown
  9717. buttondoubleclick
  9718. buttonStillDown
  9719. "timeUp"
  9720. actionItem 
  9721. selectedHotwords 
  9722. "hour"
  9723. "Time" 
  9724. "minute"
  9725. "AMPM"
  9726. timeUp
  9727. timeDown
  9728. increment
  9729. evaluate(day)
  9730. 08 : 42 : 45 PMM
  9731. minute
  9732. seconds
  9733. ASYM_BeenHere
  9734. Limit Length of Entry String
  9735. origPage
  9736. original
  9737. Limit Length of Entry String
  9738. label
  9739. Limit Length of Entry Stringr
  9740. This handler is to be installed into the script of a field. When a key is pressed, it checks that the charCount of the text of the field is within the limits specified in the script.   
  9741. This is a handler for a built-in ToolBook message that is sent to a field each time the user presses a key.  Along with the keyChar message, Toolbook passes a parameter containing the unique code for the key pressed.
  9742. Handler:   keyChar keyPressedsseddddameters are:
  9743.    keyPressed   the key pressed by the user
  9744. -- does not allow entry of more than specified
  9745. -- amount of characters. Place this handler in a field.
  9746. to handle keyChar keyPressed
  9747.     local INT maxCharAllowed
  9748.     local INT currentCount
  9749.     maxCharAllowed = 10
  9750.     currentCount = charCount(my text)
  9751.     if (currentCount >= maxCharAllowed) \
  9752.      or (keyPressed = keyEnter and currentCount >= \
  9753.      maxCharAllowed - 1)
  9754.         beep 1
  9755.     else
  9756.         forward
  9757. ASYM_BeenHere
  9758. Limit Length of Entry String
  9759. Cursor Resources
  9760. Add number of days to date
  9761. Check for Alpha Non-Numeric Data
  9762. origPage
  9763. original
  9764. Check for Alpha Non-Numeric Data
  9765. label
  9766. Check for Alpha Non-Numeric Data
  9767. This function checks each character to ensure that it is a letter from in the range of A-Z or a-z.  To allow additional values or characters, you will need to add them to the string held in the variable "alphabet."
  9768. Handler:    isStringAlpha (<testString>)
  9769. Parameters:
  9770. <testString>    
  9771. Returns true if the string contains only alpha characters or null.
  9772. pha characters or null.
  9773. true      testString contained only alpha  characters (A-Z or a-z)  or  NULL
  9774.    false      testString contained at least  one non-alpha character
  9775. -- tests each character of testString, returns TRUE
  9776. -- if all are alpha (non-numeric)
  9777. to get isStringAlpha testString
  9778.     alphabet = "abcdefghijklmnopqrstuvwxyz"
  9779.     step i from 1 to charcount(testString)
  9780.         if char i of testString is not in alphabet
  9781.             return FALSE
  9782.         end
  9783.     return TRUE
  9784. ASYM_BeenHere
  9785. Bring ToolBook Window to Front
  9786. Bring ToolBook Window to Front
  9787. This script uses DDE to get the sysWindowHandle of another instance  of ToolBook.  It then calls Windows to bring that window to the front of the desktop. If that application is not running, it runs it.
  9788. Handler:    bringWindowToFront <application>
  9789. Parameters:
  9790. <application>:     the name of theToolBook file   
  9791. to handle bringWindowToFront appNameToRun
  9792.     linkDLL "user"  
  9793.         --bringWindowToTop is a Windows function that
  9794.         --puts the Window whose window handle is passed to it
  9795.         --in front of all the other windows.
  9796.         INT bringWindowToTop(WORD)
  9797.     end linkDLL
  9798.     --getRemote returns 9 separate items in sysError  
  9799.     --item 1 is the status of the remote request
  9800.    getRemote "sysWindowHandle" application  toolBook topic appNameToRun
  9801.     if (item 1 of sysError) is "OK"
  9802.         get bringWindowToTop(it)
  9803.         --bringWindowToTop doesn't size to page or even 
  9804.         --restore it
  9805.         executeRemote "send SizeToPage" application toolbook \
  9806.          topic appNameToRun
  9807.     else
  9808.         --the app isn't running, so we'll start it
  9809.         run appNameToRun
  9810.     end if
  9811. end      
  9812. Front     
  9813. origPage
  9814. original
  9815. Bring ToolBook Window to Front
  9816. label
  9817. ASYM_BeenHere
  9818. Bring ToolBook Window to Front
  9819. Using windows pointers
  9820. Resizing a polypoint object
  9821. Initialize Excel Conversation
  9822. Initialize Excel Conversation
  9823. This function will run Excel if it is not running already.  If a filename is passed to this function it will tell Excel to load that file if it is not loaded already. 
  9824. Handler:    InitializeExcel  (<fileName>)
  9825. Parameters:
  9826. <filename>    optional; makes sure the file is open in Excel
  9827. Returns true if it successfully established conversation with Excel
  9828.    false        couldn't load Excel or, if provided, the file name given
  9829. SysError values are those of the command executeRemote  (see the OpenScript Encyclopedia).
  9830.    OK                     Conversation was succesfully established
  9831.    Failed:No Server    Excel is not running with the expected file
  9832.    Failed: xxxxx        Excel is running, but something is wrong
  9833. to get InitializeExcel fileNameToRun
  9834.     --Get the current status of Excel
  9835.     getRemote "Status" application "Excel" topic "System"
  9836.     --If it failed because there is no server
  9837.     --run excel
  9838.     if item 1 of sysError = "Failed: No Server" 
  9839.         run "excel.exe" && fileNameToRun
  9840.         getRemote "Status" application "Excel" topic "System"
  9841.   end
  9842.   --getRemote status should return Ready
  9843.     if it <> "Ready" 
  9844.         return false
  9845.     end if
  9846.     --Make sure that it is not minimized
  9847.     executeRemote "[App.Restore()]" application "excel"
  9848.     --If no file has been specified then return successfully
  9849.     if fileNameToRun = NULL 
  9850.         return true
  9851.     --Check to see if fFileName is open and, if so, 
  9852.     --make it active
  9853.     executeRemote "[Activate(""" & fileNameToRun & """)]" \
  9854.      application "excel" topic fileNameToRun
  9855.     --If it failed because there is no server then try 
  9856.     --opening the file
  9857.     if item 1 of sysError = "Failed: No Server" 
  9858.         executeRemote "[Open(""" & fileNameToRun & """)]" \
  9859.          application "excel"
  9860.     --If sysError is OK then success
  9861.     if item 1 of sysError = "OK" 
  9862.         return true
  9863.     return false
  9864. X    F    u4
  9865. origPage
  9866. original
  9867. Initialize Excel Conversation
  9868. label
  9869. ASYM_BeenHere
  9870. Initialize Excel Conversation
  9871. label
  9872. to handle enterApplication
  9873.     system s_backMessageSent
  9874.     -- initialize system variable
  9875.     s_backMessageSent = false
  9876.     -- turn off syshistory
  9877.     syshistoryrecord = false
  9878.     clear syshistory
  9879.     forward
  9880. to handle leavepage
  9881.     system s_backMessageSent
  9882.     -- only puts page on syshistory if navigation is *not* initiated by BACK
  9883.     if targetWindow is mainWindow
  9884.         if s_backMessageSent is false
  9885.             push this page onto syshistory
  9886.         else
  9887.             s_backMessageSent = false
  9888.         end
  9889.     forward
  9890. to handle back
  9891.     system s_backMessageSent
  9892.     if itemcount(syshistory) > 0
  9893.         s_backMessageSent = true
  9894.         pop syshistory
  9895.         in mainwindow
  9896.             go to it
  9897.         end
  9898.     else
  9899.         request "You are already all the way back."
  9900. Changing the behavior of BACK
  9901. Changing the behavior of BACK
  9902. These handlers, when placed in the book script of a ToolBook application, will make the BACK message behave like back behaves in WinHelp. 
  9903. Note: be sure you forward any leavePage handlers located in a page or background script.
  9904. Handlers:
  9905. EnterApplication
  9906. LeavePage
  9907. ASYM_BeenHere
  9908. Spin controls
  9909. Graphic slider control
  9910. Check for Valid File Name
  9911. Search Path for File
  9912. Verbose
  9913. Sorting a 1-D array
  9914. label
  9915. Sorting a 1-D array
  9916. -- The next three handlers make up a Standard recursive 
  9917. -- QuickSort.
  9918. to handle quicksort fArray[] by reference
  9919.     system s_noSwap
  9920.     set s_noSwap to 0
  9921.     send quicksrt fArray, 1, dimensions ( fArray )
  9922. to handle quicksrt fArray[] by reference, lo, hi
  9923.     system  s_noSwap
  9924.     if hi > lo 
  9925.         send swap  fArray, lo, ((lo+hi) div 2)
  9926.         set lst to lo
  9927.         step i from (lo+1) to hi
  9928.             if fArray[i] < fArray[lo] as text
  9929.                 increment lst
  9930.                 send swap fArray, lst, i
  9931.             else
  9932.                 increment s_noswap
  9933.             end
  9934.         end 
  9935.         send swap fArray,lo,lst 
  9936.            send quicksrt fArray, lo, lst-1
  9937.         send quicksrt fArray, lst+1,hi
  9938.        end
  9939. to handle swap fArray[] by reference, x, y
  9940.     local temp
  9941.     set temp to fArray[x]
  9942.     set fArray[x] to fArray[y]
  9943.     set fArray[y] to temp
  9944. end fArray[x]
  9945.     set fArray[x] to fArray[y]
  9946.     set fArray[y] to temp
  9947. This is an OpenScript implementation of the standard recursive quick sort.
  9948. Handler:      quickSort <arrayRef>
  9949. Parameter:    
  9950. <arrayRef>:      A one-dimensional array.
  9951. Example:
  9952.   local fArray[]
  9953.   fill fArray with my text in [textline] order
  9954.   send quickSort fArray
  9955. ASYM_BeenHere
  9956. Search Path for File
  9957. origPage
  9958. Search Path for File
  9959. This script links to the function getDosEnvironmentString in TB40DOS.DLL to get the DOS path and then determines if the file is in that path.
  9960. Handler:      fileInPath (<fileName>)
  9961. Parameters:
  9962. <fileName>    file name to search for
  9963. Returns null if file is not found, or the first directory in the path that contains the file if found.
  9964.    NULL        file not found
  9965.    currentPath    the first directory in the path that contains the file
  9966.    Null parameter    no file name was passed to function
  9967. name was passed to function
  9968. to get FileInPath fileNameToCheck
  9969.     --If fileNameToCheck is null then fail immediately
  9970.     if fileNameToCheck is NULL then
  9971.         return null
  9972.     end if
  9973.     --Link to the tb40dos dll
  9974.     linkDLL "tb40dos.dll"
  9975.         INT fileExists (STRING)
  9976.         STRING getDOSEnvironmentString (STRING)
  9977.     end linkDLL
  9978.     --Get the path list 
  9979.     set currentPathList to   getDOSEnvironmentString ("PATH")
  9980.     --Clear the 'Path=' at the beginning of the path list
  9981.     get offset("=",currentPathList)
  9982.     if it > 0 then
  9983.         clear chars 1 to it of currentPathList
  9984.     end if
  9985.     --Convert the path list to a list of items    
  9986.     get offset(";",currentPathList)
  9987.     while it > 0
  9988.         set char it of currentPathList to ","
  9989.         get offset(";",currentPathList)
  9990.     end while
  9991.     --Search through the list, one path at a time
  9992.     while currentPathList is not NULL
  9993.         pop currentPathList into checkPath
  9994.         if last char of checkPath is not "\"
  9995.             put "\" after checkPath
  9996.         end if
  9997.         if fileExists(checkPath & fileNameToCheck) = 1
  9998.             return checkPath
  9999.         end if
  10000.     end while
  10001.     --Unable to find file in the path
  10002.     return null
  10003. original
  10004. Search Path for File
  10005. label
  10006. ASYM_BeenHere
  10007. Get Current Path Setting
  10008. origPage
  10009. original
  10010. Get Current Path Setting<
  10011. This script links to the function getDosEnvironmentString in TB40DOS.DLL to get the current DOS path setting. This handler returns the path currently specified in your DOS environment.
  10012. Handler:      findCurrentPath
  10013. No parameters.
  10014. RRath setting
  10015. to get findCurrentPath
  10016.    --Link to the tb40dos dll
  10017.     linkDLL "tb40dos.dll"
  10018.         STRING getDOSEnvironmentString (STRING)
  10019.      end linkDLL
  10020.    --Get the path list 
  10021.       set currentPathSetting to  getDOSEnvironmentString ("PATH")
  10022.       return currentPathSetting
  10023. end findCurrentPath
  10024. Get Current Path Setting
  10025. label
  10026. ASYM_BeenHere
  10027. Get Current Path Setting
  10028. Remove given char from string
  10029. Convert textlines to list
  10030. Insert/Overwrite field
  10031. origPage
  10032. original
  10033. Insert/Overwrite field
  10034. label
  10035. ASYM_BeenHere
  10036. Insert/Overwrite field
  10037. The upper field toggles between insert and overwrite mode when you press the insert key, the lower field indicates the mode. All handlers are in the fields.
  10038. Type in the field to the right. 
  10039. Pressing the insert key toggles between insert and overwrite modes. The small field below reports the current mode.
  10040. insert/overwrite
  10041. overWriteFlag
  10042. false
  10043. keyDown
  10044. overWriteFlag
  10045. keyChar
  10046. overWriteFlag
  10047. enterpage
  10048. 4logical overWriteFlag
  10049. Y <> 
  10050. notifybefore 
  10051. notifyafter 
  10052. Now is the time for all good men to come to the aid of their country.s............................................wwwwwwwwwwwwwwwwwwwwwwwwwwwwwww
  10053. Toggle
  10054. overWriteFlag
  10055. keyDown
  10056. overWriteFlag
  10057. enterPage
  10058. notifyAfter 
  10059. 4LOGICAL overWriteFlag
  10060. Insert_Overstrike_Toggle
  10061. tbk_wid_name
  10062.     terPage
  10063. keyDown
  10064. enterPage
  10065. enterpage
  10066. ,&H.&
  10067. RPhT`
  10068. Auto-scroll field
  10069. Converting to Binary, Hex, Octal
  10070. intro
  10071. <Introduction>
  10072. Dragging Objects
  10073. label
  10074. ASYM_BeenHere
  10075. Dragging Objects5
  10076. Put the script below in an object that you want to drag with the mouse.
  10077. Handler:    buttonDown
  10078. Parameters:    loc (location of mouse click)
  10079. to handle buttonDown loc
  10080.     local stack bnds,mouseOffset
  10081.     linkdll "user"
  10082.         int getsystemmetrics(int)
  10083.     -- check if the user has swapped mouse buttons.
  10084.     if getSystemMetrics(23) >0
  10085.         set leftMouseButton to keyRightButton
  10086.     else
  10087.         set leftMouseButton to keyLeftButton
  10088.     set bnds to bounds of target
  10089.     set mouseOffset to item 1 of loc - item 1 of bnds,\
  10090.       item 2 of loc - item 2 of bnds
  10091.     leftMouseButton=keyLeftButton
  10092.     while keyState(leftMouseButton)is down
  10093.         newloc = sysMousePosition
  10094.         if newLoc <> loc
  10095.             set position of target to \
  10096.               item 1 of newLoc-item 1 of mouseOffset,\
  10097.               item 2 of newLoc-item 2 of mouseOffset
  10098.             set loc to newLoc
  10099.         end if
  10100.     end while
  10101. end buttonDown
  10102. Display 2-D array values
  10103. Testola
  10104. description only
  10105. subtopicname
  10106. in,ms
  10107. ThreeDeeRect
  10108. bottomLine
  10109. topLine
  10110. explanation
  10111. 9505100024541471761132477470
  10112. ASYM_TpID
  10113. Converting to Binary, Hex, Octal
  10114. origPage
  10115. original
  10116. Converting to Binary, Hex, Octal
  10117. label
  10118. Converting to Binary, Hex, Octal
  10119. The Format command has been extended to allow conversion between Binary, Hex, and Octal number systems. The following are the new format strings
  10120.     Binary:            "@b"
  10121.     Octal:           "@o"
  10122.     Hex:            "@h"
  10123.     Decimal:       "@d"
  10124. These strings precede the normal number format string. So to convert a variable "n" from decimal to hexidecimal, you could use the following command:
  10125.     format number n as "@h0"
  10126. To convert it back to decimal, you'd do this:
  10127.     format number n as "@d0" from "@h0"
  10128.  is "Hexidecimal" 
  10129.             format number numberEntered as "@h#"
  10130.         else 
  10131.             format number numberEntered as "@o#"
  10132.    end conditions
  10133.       return numberEntered
  10134. end doConversion
  10135. ASYM_BeenHere
  10136. Binary Insertion of Textline
  10137. origPage
  10138. original
  10139. Binary Insertion of Textline
  10140. label
  10141. Binary Insertion of Textline into Field
  10142. Inserts a textline into a string delimited by CRLFs, maintaining sorted order.
  10143. Handler:    InsertLine (<txt>,<newLine>)
  10144. Parameters:
  10145. <txt>            Text, sorted by textLine
  10146. <newLine>    The new line to insert.
  10147. Example of use:
  10148.   text of field "f" = insertLine(text of field "f",newLine)
  10149. -- use if inserting a single line. Will maintain sorted order
  10150. to get insertLine txt,newLine
  10151.     if txt is null
  10152.         return newLine
  10153.     set start to 1  -- first textline
  10154.     set tlc to textlinecount(txt)
  10155.     set ending to tlc -- last textline
  10156.     local insertSpot
  10157.     while start <= ending 
  10158.         set midPoint to (start+ending) div 2 
  10159.         set middleLine to textline midPoint of txt
  10160.         conditions
  10161.             when newLine < middleLine as text
  10162.                 -- start looking at values less than current midPoint
  10163.                 set ending to midPoint-1
  10164.                 set insertSpot to midPoint
  10165.             when newLine > middleLine as text
  10166.                 -- start looking at values greater than current midPoint
  10167.                 set start to midPoint+1
  10168.                 set insertSpot to midPoint+1
  10169.             else
  10170.                 -- the item already exists
  10171.                 set insertSpot to midPoint
  10172.                 break while
  10173.         end
  10174.     if insertSpot > tlc
  10175.         put newLine before textline insertSpot of txt
  10176.     else
  10177.         put newLine&crlf before textline insertSpot of txt
  10178.     return txt
  10179. ASYM_BeenHere
  10180. ASYM_BeenHere
  10181. label
  10182. Making mmSource-paths book relative
  10183. If you've saved your clips with fully qualified paths to their source files, you will probably want to change them so that they are  relative to the location of the book so that the clips can be easily found using the HDMediaPath or CDMediaPath when installed on another machine. This routine runs through your resources and makes them relative to the book path. For example:
  10184. If the book is "c:\toolbook\animals.tbk"
  10185. mmSource "c:\toolbook\howl.wav" becomes "howl.wav"
  10186. mmSource "c:\toolbook\wave\moo.wav"  becomes "wave\moo.wav"""""""av"
  10187. -- This handler is useful for eliminating fully qualified 
  10188. -- path names of the mmsource of clips. Instead, the path 
  10189. -- names will be relative to the book path.
  10190. -- For example:
  10191. -- if you had clips with the following paths specified as 
  10192. -- their mmSources
  10193. -- c:\mtb40\dog.wav
  10194. -- c:\mtb40\data\cat.wav
  10195. -- calling this function from a book in the "c:\mtb40" 
  10196. -- directory would change these to the following:
  10197. -- dog.wav
  10198. -- data\cat.wav
  10199. -- Once you've done this, you still need to set the 
  10200. -- hdMediaPath to the book path (on enterApplication, 
  10201. -- for example) to allow any clips located below the book 
  10202. -- path in the directory tree to be found.
  10203. to handle relateClipsToBookPath
  10204.     if name of this book is null
  10205.         break
  10206.     linkdll "tb40dos.dll"
  10207.         int setcurrentdirectory(string)
  10208.         int setCurrentDrive(string)
  10209.         string getCurrentDrive()
  10210.         string getcurrentDirectory(string)
  10211.     path = myPath()
  10212.     -- cache current drive and directory
  10213.     curDrive = getCurrentDrive()
  10214.     curdir = getCurrentDirectory(curDrive)
  10215.     -- attempt to change to specified path
  10216.     a = setcurrentdrive(first char of path)
  10217.     b = setcurrentdirectory(path)
  10218.     -- both functions above return 1 if successful, 
  10219.     -- or a negative number if not
  10220.     if a + b <> 2
  10221.         -- if either function failed
  10222.         request path && "is invalid."
  10223.     else
  10224.         -- add slash to end
  10225.         put "\" after path
  10226.         clipList = resourceList("clip",this book)
  10227.         -- walk through clips, checking if any are under path
  10228.         step i from 1 to itemcount(clipList)
  10229.             pop clipList into curClip
  10230.             src = mmsource of curClip
  10231.             if src contains path 
  10232.                 -- it is under path, so drop first part
  10233.                 clear chars 1 to charcount(path) of src
  10234.                 mmsource of curClip = src
  10235.                 mmSearchHD of curClip = true -- or mmSearchCD
  10236.             end
  10237.         end
  10238.     -- return current directory to original value
  10239.     get setcurrentdrive(curDrive)
  10240.     get setcurrentdirectory(curDir)
  10241. to get myPath
  10242.     get name of this book
  10243.     step i from charcount(it) to 1 by -1
  10244.         if char i of it is "\"
  10245.             return chars 1 to i-1 of it
  10246.         end
  10247.     return null -- happens only when the book is untitled
  10248. Making mmSource-paths book relative
  10249. wwwwp
  10250. wwwwp
  10251. wwwww
  10252. wwwwwp
  10253. TTTTP
  10254. EDEEP
  10255. TDDTP
  10256. STATUSBARf
  10257. CREATESPLASHWNDg
  10258. wwwwww
  10259. wwwww
  10260. Using windows pointers
  10261. windows m
  10262. origPage
  10263. original
  10264. Using windows pointers
  10265. The following functions are helpful if you need to allocate a pointer for calling a windows function.
  10266. getWinPointer ( <nsize> )
  10267. Use this to get a locked pointer.
  10268. Parameter:    <nsize>: the size in bytes to allocate
  10269. Return value:    Returns a reference to a locked pointer that you can pass
  10270.         to a windows function requiring a pointer.
  10271. freeWinPointer (<pointer Variable>)
  10272. Frees a locked pointer, recovering memory.
  10273. Parameter:    <pointer variable>: the variable returned from 
  10274.         getWinPointer()
  10275. Return value:    Returns 0 if successful, a positive integer if not.
  10276. linkMemFunctions
  10277. Links the functions necessary for the above handlers.
  10278. Parameters:    None.....rs:    None.
  10279. -- the link statements for needed functions below
  10280. to handle linkMemFunctions
  10281.     linkDLL "KERNEL"
  10282.         WORD     GlobalAlloc(WORD,DWORD)
  10283.         WORD     GlobalFree(WORD)
  10284.         WORD     GlobalHandle(WORD)
  10285.         POINTER GlobalLock(WORD)    
  10286.         WORD     GlobalUnlock(WORD)
  10287. to get getWinPointer nSize
  10288.     local word hMem
  10289.     local retValue
  10290.     hMem = GlobalAlloc(66,nSize)
  10291.     return GlobalLock(hMem)
  10292. to get freeWinPointer pMem
  10293.     local word hMem, retValue
  10294.     hMem = GlobalHandle(item 1 of pMem)
  10295.     retValue = GlobalUnlock(hMem)
  10296.     return GlobalFree(hMem)
  10297. enddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd
  10298. Using windows pointers
  10299. label
  10300. ASYM_BeenHere
  10301. Using a RECT structure
  10302. origPage
  10303. original
  10304. Using a RECT structure
  10305. label
  10306. Using a RECT structure_
  10307. The following functions are useful for dealing with windows functions that require or return a RECT structure.
  10308. setRect <vertices>,<pRect>
  10309. This sets the values of the RECT structure in pRect. Useful if you must pass a filled RECT structure to a Windows function.
  10310. Parameters:
  10311. <vertices>:    The vertices of the rectangle.
  10312. <pRect>:    The pointer to the RECT structure. (8 bytes)
  10313. getRect <pRect>
  10314. This extracts the vertices from a filled RECT structure. 
  10315. Parameter:    <pRect>: The pointer to a RECT structure. (8 bytes)
  10316. getWinPointer ( <nsize> )
  10317. Use this to get a locked pointer.
  10318. Parameter:    <nsize>: the size in bytes to allocate
  10319. Return value:    Returns a reference to a locked pointer that you can pass
  10320.         to a windows function requiring a pointer.
  10321. freeWinPointer (<pointer Variable>)
  10322. Frees a locked pointer, recovering memory.
  10323. Parameter:    <pointer variable>: the variable returned from 
  10324.         getWinPointer()
  10325. Return value:    Returns 0 if successful, a positive integer if not.
  10326. linkMemFunctions
  10327. Links the functions necessary for the above handlers.
  10328. Parameters:    None.....Functions
  10329. Links the functions necessary for the above handlers.
  10330. Parameters:    None...e.y for the above handlers.
  10331. Parameters:    None.
  10332. -- lst is a list of 4 integers
  10333. -- pRect is a locked pointer to 8 bytes
  10334. to handle setRect lst,pRect
  10335.     step i from 0 to 6 by 2
  10336.         pop lst
  10337.         get pointerInt(i,pRect,it)
  10338. -- pRect is a locked pointer to 8 bytes
  10339. to get getRect pRect
  10340.     local retval
  10341.     step i from 6 to 0 by -2
  10342.         push pointerInt(i,pRect) onto retval
  10343.     return retval
  10344. -- the link statements for needed functions below
  10345. to handle linkMemFunctions
  10346.     linkDLL "KERNEL"
  10347.         WORD     GlobalAlloc(WORD,DWORD)
  10348.         WORD     GlobalFree(WORD)
  10349.         WORD     GlobalHandle(WORD)
  10350.         POINTER GlobalLock(WORD)    
  10351.         WORD     GlobalUnlock(WORD)
  10352. to get getWinPointer nSize
  10353.     local word hMem
  10354.     local retValue
  10355.     hMem = GlobalAlloc(66,nSize)
  10356.     return GlobalLock(hMem)
  10357. to get freeWinPointer pMem
  10358.     local word hMem, retValue
  10359.     hMem = GlobalHandle(item 1 of pMem)
  10360.     retValue = GlobalUnlock(hMem)
  10361.     return GlobalFree(hMem)
  10362. enddddddddddddddddddd
  10363.     return GlobalFree(hMem)
  10364. ASYM_BeenHere
  10365. Sorting a 2-D array
  10366. origPage
  10367. original
  10368. Sorting a 2-D array
  10369. label
  10370. Sorting a 2-D array
  10371. Think of a 2-D array as a table in which the first dimension refers to  rows and the second dimension refers to columns. This function sorts the "rows" of a two dimensional array by the values of one of its columns.
  10372. You pass it the array you want to sort, the column you want to sort by, and the "datatype" of the column you want to sort. (Either "text", "date", or "number")/
  10373. Click on the radio buttons to the right to sort the table by the associated column.
  10374. Note: the "table" to the right is a tab-delimited field with two vertical lines drawn over it. The handlers in the buttons load this text into a 2D array and pass it to a handler in this page, specifying the column and type for the sort.     rt.        
  10375. stwoDquickSort
  10376. sortField
  10377. buttonclick
  10378. buttonclick
  10379. Zretval
  10380. Zx[][]
  10381. fref 
  10382. "sortField"
  10383.     fill x 
  10384. g] order
  10385. calls the sorting routine. Note 
  10386. column
  10387. 'array 
  10388. specified, 
  10389. be sorted 
  10390. twoDquickSort x,1,"
  10391. part loads 
  10392. dimensions(x)
  10393. x[i][j] 
  10394. Number
  10395. stwoDquickSort
  10396. number
  10397. sortField
  10398. buttonclick
  10399. buttonclick
  10400. Zretval
  10401. Zx[][]
  10402. fref 
  10403. "sortField"
  10404.     fill x 
  10405. g] order
  10406. twoDquickSort x,2,"
  10407. dimensions(x)
  10408. x[i][j] 
  10409. Number
  10410. stwoDquickSort
  10411. sortField
  10412. buttonclick
  10413. buttonclick
  10414. Zretval
  10415. Zx[][]
  10416. fref 
  10417. "sortField"
  10418.     fill x 
  10419. g] order
  10420. twoDquickSort x,3,"
  10421. dimensions(x)
  10422. x[i][j] 
  10423. Sort by:
  10424. sortField
  10425. a    3    5/23/91
  10426. b    2    3/11/92
  10427. c    4    4/1/06
  10428. d    9    11/13/66
  10429. e    0    7/4/76
  10430. f    6    7/7/64
  10431. g    7    4/1/23
  10432. h    1    2/9/55
  10433. i    5    3/1/29
  10434. a    8    1/12/93
  10435. ASYM_BeenHere
  10436. Using a RECT structure
  10437. isLeapYear()
  10438. Get number of days in month
  10439. Key Up
  10440. Key Down
  10441. Enter Key lo Right Up
  10442. Enter Key lo Right Down
  10443. Enter key lo Left Up
  10444. Enter key Lo Left Down
  10445. Enter Key hi Left Up
  10446. Enter key hi Left Down
  10447. Enter Key hi Right Up
  10448. Enter key hi Right Up
  10449. Key Up Left
  10450. Key Down Left
  10451. Key Up Right
  10452. Key Down Right
  10453. Key Up Center
  10454. Key Down Center
  10455. dragApple
  10456. dragOrange
  10457. Get path of current book
  10458. label
  10459. Get path of current book
  10460. to get myPath
  10461.     get name of this book
  10462.     step i from charcount(it) to 1 by -1
  10463.         if char i of it is "\"
  10464.             return chars 1 to i of it
  10465.         end
  10466.     return null -- happens only when the book is untitled
  10467. This function returns the path of the current book.
  10468. Example of calling this function in a book called c:\books\test.tbk:
  10469.     get myPath(this book)
  10470. Returns "c:\books\""
  10471. ASYM_BeenHere
  10472. invertedButton
  10473. .isChild
  10474. NON-ALPHA
  10475. ,toggleInvert
  10476. invertedButtonClass
  10477. ALPHA
  10478. txClassName
  10479. label
  10480. buttonStillDown
  10481. buttonDoubleC
  10482. resize
  10483. Get Free Disk Space on a Drive
  10484. origPage
  10485. original
  10486. Get Free Disk Space on a DriveB
  10487. This script links to the function called getFreeDiskSpace in the tb40dos.dll to get the amount of disk space currently available on a particular drive.
  10488. Handler:    findDiskSpace (<drive>)
  10489. Parameters:
  10490. <drive>        the name of the drive to check
  10491. Returns the amount of space available on a  particular drive..ror
  10492.      
  10493.      
  10494. ve an error
  10495.      
  10496. to get findDiskSpace whatDrive
  10497.     local LONG diskSpaceAvailable
  10498.     --Link to the tb40dos dll
  10499.     linkDLL "tb40dos.dll"
  10500.         LONG getFreeDiskSpace(STRING)
  10501.     end linkDLL
  10502.     set diskSpaceAvailable to getFreeDiskSpace(whatDrive)
  10503.     return diskSpaceAvailable
  10504. Get Free Disk Space on a Drive
  10505. label
  10506. ASYM_BeenHere
  10507. Get Free Disk Space on a Drive
  10508. Exit and restart windows
  10509. Insert/Overwrite field
  10510. Recording wave files from CD
  10511. label
  10512. ASYM_BeenHere
  10513. Recording wave files from CD
  10514. You can record clips from a CD to wave files using the utility below. Copy the object to a book with some clips, and then specify the channels, sample rate, bits per sample, and file name.
  10515. This group of objects will record an existing CDAudio clip to a wave file on the disk.
  10516. NOTE: must have your CD Player connected to your sound board for this function to work....
  10517. Clip Chooser
  10518. CdresetContents
  10519. enterpage
  10520. CdresetContents
  10521. clips
  10522. whatClip
  10523. CDAudio
  10524. resetContents
  10525. notifyBefore 
  10526. resetContents
  10527. notifyAfter 
  10528. [dropdownitems 
  10529.     clips = resourceList(
  10530. <> NULL
  10531. whatClip
  10532. mmSource 
  10533.  = "CDAudio"
  10534. 6&CRLF 
  10535. "&"E&
  10536. dropDownItems 
  10537. D:\HOOKWORK\CLIPS.TBK
  10538. lookBook
  10539. clip "CD Audio"
  10540. clip "CD Audio"
  10541. Channels
  10542. Stereo                    2
  10543. Mono                    1
  10544. Stereo                    2
  10545. sample rate
  10546. 22 kHz                    22050
  10547. 11 kHz                    11025
  10548. 22 kHz                    22050
  10549. 44 kHz                    44100
  10550. bits/sample
  10551. 16z                    11025
  10552. 22 kHz                    22050
  10553. 44 kHz                    44100
  10554. Record Wavefile
  10555. Record Wavefile
  10556. CDAudio Clip to Record
  10557. Channels
  10558. Sample Rate
  10559. Bits/Sample
  10560. enterpage
  10561. Convert textlines to list
  10562. origPage
  10563. original
  10564. Convert textlines to list
  10565. label
  10566. Convert textlines to list
  10567. This handler converts a string delimited by CRLFs to a list.
  10568. Handler:    textLinesToList (<textLines>)
  10569. Parameters:
  10570. <textLines>    a string delimited by CRLFs
  10571. Returns a list, each item representing a textline.................
  10572. -- converts string delimited by CRLFs to a list
  10573. to get textLinesToList txt
  10574.     local stack lst
  10575.     step i from textlinecount(txt) to 1 by - 1
  10576.         push textline i of txt onto lst
  10577.     return lst
  10578. ASYM_BeenHere
  10579. Exit and restart windows
  10580. Exit and restart windows
  10581. label
  10582. --When restart is true, Windows will exit and restart.  
  10583. --If restart is null or false, Windows will just exit.
  10584. to handle exitWindows restart
  10585.     linkDLL "user"
  10586.         INT ExitWindows (DWORD, INT)
  10587.     end linkDLL
  10588.     if restart is true
  10589.             get ExitWindows (66, 0)
  10590.     else
  10591.             get ExitWindows (0, 0)
  10592.     end 
  10593. -- You can also use "67" to reboot the machineeee        get ExitWindows (67, 0)
  10594.     end 
  10595.     end 
  10596.     end 
  10597. end buttonUp
  10598. nd buttonUp
  10599. nd buttonUp
  10600. Calling this handler will cause Windows to exit. You can optionally specify that Windows restarts after exiting.
  10601. Handler:    exitWindows <restart>
  10602. Parameters:
  10603. <restart>    True if you want to restart Windows
  10604. n Windows will just Exit.
  10605. origPage
  10606. original
  10607. Exit and restart windows
  10608. ASYM_BeenHere
  10609. Get day of week from date
  10610. Get day of week from date
  10611. label
  10612. -- returns the weekday of any day beyond 1/1/1700: 
  10613. -- note: requires full year. Example: get weekDay("1/1/1993")
  10614. -- also requires isLeapYear() function below
  10615. to get dayOfWeek pdate
  10616.     -- make a list out of the date
  10617.     format date pdate as "m,d,y" from "m/d/y"
  10618.     set m to item 1 of pdate 
  10619.     set d to item 2 of pdate 
  10620.     set y to item 3 of pdate 
  10621.     -- the following list (1 item for each month) contains the 
  10622.     -- number of days that have passed before first day of 
  10623.     -- each month.
  10624.     set days to "0,31,59,90,120,151,181,212,243,273,304,334" 
  10625.     -- set numdays to number of days elapsed since 1/1/1700 
  10626.     set numdays to (y-1700) div 4-(y-1700) div 100 +(y-1600) \
  10627.      div 400 + 365 * (y - 1700) + item m of days + d -1 
  10628.     if isLeapYear(y) and m <= 2 
  10629.         decrement numdays by 1 
  10630.     end 
  10631.     set n to  (numdays-2) mod 7 +1
  10632.     return item n of \
  10633.      "Sunday,Monday,Tuesday,Wednesday,Thursday,Friday,Saturday" 
  10634. -- Returns TRUE if y is a leap year, FALSE if not.
  10635. -- NOTE: this fuction requires a four digit year.
  10636. -- Example:  Find out if 1992 is a leap year.
  10637. -- if leapYear(1992)
  10638. to get isLeapYear y
  10639.     if ((y mod 4 = 0 and y mod 100 <> 0) or (y mod 400 = 0))
  10640.         return TRUE
  10641.     else
  10642.         return FALSE
  10643. urn TRUE
  10644.     else
  10645.         return FALSE
  10646. This handler returns the day of the week (Monday, Tuesday, etc) from any given date since 1/1/1700. Note that you must provide a four-digit year.
  10647. Note that this function requires the handler isLeapYear, included below.
  10648. Handler:    dayOfWeek(<date>)
  10649. Parameters:
  10650. <date>        A date in this format: "1/1/1994"
  10651.         (Note a four-digit year is required.)
  10652.  year is required.)
  10653. origPage
  10654. original
  10655. Get day of week from date
  10656. ASYM_BeenHere
  10657. isLeapYear()
  10658. isLeapYear()
  10659. label
  10660. This function returns true if a given date is a leap year, false if not. Note that it requires a four digit year.
  10661. Handler:    isLeapYear (<year>)
  10662. Parameters:
  10663. <year>:        a four-digit number representing a year
  10664. -- Returns TRUE if y is a leap year, FALSE if not.
  10665. -- NOTE: this fuction requires a four digit year.
  10666. -- Example:  Find out if 1992 is a leap year.
  10667. -- if leapYear(1992)
  10668. to get isLeapYear y
  10669.     if ((y mod 4 = 0 and y mod 100 <> 0) or (y mod 400 = 0))
  10670.         return TRUE
  10671.     else
  10672.         return FALSE
  10673. origPage
  10674. original
  10675. isLeapYear()
  10676. ASYM_BeenHere
  10677. ND, OR, and XOR
  10678. AutoPageName
  10679. Sorting a 2-D array
  10680. intro
  10681. SubtopicName
  10682. 95051000040014592225940240
  10683. ASYM_TpID
  10684. Simple Drop Down Field
  10685. Remove trailing spaces
  10686. <Introduction>
  10687. origPage
  10688. 10,14
  10689. selectChars
  10690. original
  10691. <Introduction>
  10692. label
  10693. Introduction
  10694. This book is a library of scripts and objects useful in OpenScript programming. 
  10695.  To go to a given topic, click a topic in the list. 
  10696.  To view topics related to a given category, choose the desired category.
  10697.  Use the search button to search for a topic by key word.
  10698.  Use the splitter bar to resize the navigation panel to the left.
  10699. Note: you can add new topics to this book by pressing F3 (to enter author mode) and using the topic buttons that appear at the lower left.appear at the lower left.
  10700. Yes, this is a button.
  10701. buttonclick
  10702. buttonclick
  10703. "Yes, 
  10704. Yes, this is a button.
  10705. buttonclick
  10706. buttonclick
  10707. "Yes, 
  10708. out,true
  10709. ThreeDeeRect
  10710. bottomLine
  10711. topLine
  10712. OpenScript
  10713. Libraryy Base
  10714. ASYM_BeenHere
  10715. <About this book>
  10716. Binary Insertion of Textline
  10717. scriptChooserDialog
  10718. ButtonStillDown Page Navigation
  10719. ButtonStillDown Page Navigation
  10720. These simple scripts implement multiple page navigation when the mouse button is held down. 
  10721. Handlers:       
  10722. buttonDown
  10723. buttonStillDown
  10724. No parameters
  10725.     none
  10726. ering actions (ie - called XXbuttonDown rather than buttonDown)
  10727. Handlers in this script are:
  10728.    buttonDown
  10729. Parameters are:
  10730.     none
  10731. to handle buttonDown
  10732.    go to next page 
  10733. end buttonDown
  10734. to handle buttonStillDown
  10735.        send buttondown
  10736. end buttonStillDown
  10737. tonDown
  10738. to handle XXbuttonStillDown
  10739.        send buttondown
  10740. end XXbuttonStillDown
  10741. origPage
  10742. original
  10743. ButtonStillDown Page Navigation
  10744. label
  10745. ASYM_BeenHere
  10746. Play clip in a loop
  10747. label
  10748. ASYM_BeenHere
  10749. Play clip in a loop
  10750. If you want to have a wave or midi file constantly repeat in the background, use the scripts below.pts
  10751. Pressing the Play Clip button will play the specified clip continuously.uously.
  10752. Clip Chooser
  10753. CdresetContents
  10754. enterpage
  10755. CdresetContents
  10756. clips
  10757. whatClip
  10758. resetContents
  10759. Stop Clip
  10760. play clips
  10761. closed
  10762. jwhatClip
  10763. Play Clip
  10764. selectChange
  10765. notifyBefore 
  10766. resetContents
  10767. notifyAfter 
  10768. [dropdownitems 
  10769.     clips = resourceList(
  10770. <> NULL
  10771. whatClip
  10772. &CRLF 
  10773. r"&"E&
  10774. dropDownItems 
  10775. selectChange
  10776. B"play 
  10777. " = "Stop 
  10778. mmStatus 
  10779. ") <> "closed"
  10780.             mmClose (
  10781. " = "Play 
  10782. D:\HOOKWORK\CLIPS.TBK
  10783. lookBook
  10784. clip "Asymetrix Logo"
  10785. clip "Asymetrix Logo"
  10786. clip "bird1"
  10787. clip "bird2"
  10788. clip "bird3"
  10789. clip "CD Audio"
  10790. clip "Chirp"
  10791. clip "lion"
  10792. clip "No No No"
  10793. clip "tiger"
  10794. clip "toad"
  10795. Play Clips
  10796. clip "bird2"
  10797. whatClip
  10798. Play Clip
  10799. Clip to play continuously
  10800. enterpage
  10801. leavePage
  10802. calMonth
  10803. calYear
  10804. displayDate
  10805. Navigation
  10806. Check for State Abbreviation
  10807. Auto-scroll Field
  10808. origPage
  10809. original
  10810. Auto-scroll Field
  10811. label
  10812. ASYM_BeenHere
  10813. Auto-scroll Field
  10814. This field's scrollbar automatically appears when necessary.
  10815. Type in the field to the right.
  10816. When appropriate, scroll bars will automatically appear.
  10817. zashowOrHideScrollbar
  10818. enterPage
  10819. zashowOrHideScrollbar
  10820. leaveField
  10821. zashowOrHideScrollbar
  10822. keyUp
  10823. zashowOrHideScrollbar
  10824. paste
  10825. zashowOrHideScrollbar
  10826. zashowOrHideScrollbar
  10827. clear
  10828. showOrHideScrollbar
  10829. notifyBefore 
  10830. showOrHideScrollbar
  10831. notifyAfter 
  10832. Widgets are stand-alone objects that  can be copied and pasted into your applications. In most cases they are designed to work without modification of any scripts. dfg dfg 
  10833. enterPage
  10834. rPage
  10835. clear
  10836. leaveField
  10837. keyUp
  10838. paste
  10839. description and example
  10840. 9505100015091465911961295454
  10841. ASYM_TpID
  10842. SubtopicName
  10843. in,ms
  10844. ThreeDeeRect
  10845. bottomLine
  10846. topLine
  10847. explanation
  10848. .',    "
  10849. scrolling
  10850. rectangle
  10851. explanation
  10852. enterpage
  10853. notifyBefore 
  10854. fref 
  10855. "explanation" 
  10856. txtOver 
  10857. 8= 0 
  10858. Example:
  10859. in,sculpted
  10860. ThreeDeeRect
  10861. bottomLine
  10862. topLine
  10863. View Scripts
  10864. details
  10865. author
  10866. reader
  10867. author
  10868. dotted
  10869. enterpage
  10870. notifybefore 
  10871. buttonclick
  10872. Copy Objects
  10873. group
  10874. Copy Object
  10875. enterPage
  10876. buttonclick
  10877. notifyBefore 
  10878. ) > 1 
  10879. K= "Copy Objects"
  10880. Copy Objects
  10881. author
  10882. reader
  10883. enterpage
  10884. keyUp
  10885. paste
  10886. clear
  10887. leaveField
  10888. 950510195057217149960457500199
  10889. ASYM_TpID
  10890. Search and replace in a string
  10891. function searches txt 
  10892. occurrences 
  10893. searchString 
  10894. replaces 
  10895. freplaceString.
  10896. -- If asWord 
  10897. Conly where 
  10898. Tappears 
  10899. -- (A 
  10900. defined 
  10901. that 
  10902. preceded 
  10903. followed 
  10904. -- either 
  10905.  beginning 
  10906. -- wordDelimit 
  10907. common punctuation 
  10908. mathematical operators.)
  10909. searchReplace txt,searchFor,replaceWith,
  10910. --    runningTotal = 1
  10911. --    totalChars=
  10912. --    searchLen=
  10913. --    replaceLen=
  10914. --    -- 
  10915. are legally adjacent
  10916. --    -- 
  10917. = " " & 
  10918. k& "-+*/<>,()[];^=&.?':" & 
  10919. curTxt 
  10920. --        curOffset = 
  10921. --            
  10922. --            startPos = (
  10923. --            endPos = (
  10924. --            
  10925. -- test 
  10926. occurance 
  10927. isolated 
  10928. y- 1) \
  10929. + 1 \
  10930. --            
  10931. --            
  10932. --            
  10933. --            
  10934. origPage
  10935. original
  10936. Search and replace in a string
  10937. label
  10938. ASYM_BeenHere
  10939. Search and replace in a string
  10940. This page contains a function that searches text for all occurrences of one string and replaces them with another. You can specify that you only want to replace the searched string if it's a whole word.
  10941. handler: searchReplace(<txt>,<searchTxt>,<replaceTxt>,<asWord>)
  10942. Parameters:
  10943. <text>:        the string you'll be searching in
  10944. <searchTxt>:    the substring you're looking for
  10945. <replaceTxt>:    the substring you want to replace for 
  10946. <as word>:    "true" if you want to replace only whole words.
  10947. Returns modified text
  10948. odified text
  10949. ext>:        the string you'll be searching in
  10950. <searchString>:    the substring you're looking for
  10951. <replaceString>:    the substring you want to replace for <searchString>
  10952. <as word>:    "true" if you want to replace only whole words.
  10953. Returns modified text
  10954. elimit = " " & tab & crlf & "-+*/<>,()[];^=&.?':" & quote 
  10955.     while runningTotal <= totalChars
  10956.         set curTxt to chars runningTotal to totalChars of txt
  10957.         curOffset = offset(searchFor,curTxt)
  10958.         if curOffset = 0
  10959.             break while
  10960.         else
  10961.             startPos = (runningTotal+curOffset-1)
  10962.             endPos = (runningTotal+curOffset+searchLen-2)
  10963.             if asWord is true
  10964.                 -- test if this occurance is an isolated word:
  10965.                 if not ((startPos = 1 or char (startPos - 1) \
  10966.                  of txt is in wordDelimit) and\
  10967.                  (endPos = totalChars or char endPos + 1 \
  10968.                  of txt is in wordDelimit))
  10969.                      increment runningTotal by curOffset+searchLen-1
  10970.                     continue while
  10971.                 end
  10972.             end
  10973.             set chars startPos to endPos of txt to replaceWith
  10974.             increment runningTotal by curOffset+replaceLen-1
  10975.             increment totalChars by replaceLen - searchLen
  10976.         end        
  10977.     return txt
  10978. replaceLen - searchLen
  10979.         end        
  10980.     return txt
  10981. Try searching and replacing various words in the paragraph to the right. 
  10982. Note: when the As Word button is checked, only strings that exist as whole words in the text will be substituted..............
  10983. searchReplace
  10984. The quick red fox jumped over the lumpy log. The fox, being inquisitive by nature and not really in any hurry, stopped to examine the underside of the log in an olfactory sort of way. "Those blasted dogs," he thought to himself. "Who do they think they are?" Seconds later he was ripped to shreds.hreds.
  10985. searchString
  10986. replaceString
  10987. rabbit
  10988. Search Textng
  10989. Replace Textng
  10990. searchAndReplace
  10991. Search and Replace
  10992. asWord
  10993. As Word
  10994. Playing random sounds
  10995. label
  10996. ASYM_BeenHere
  10997. Playing random sounds
  10998. Here is an example of playing clips at random. This could be used if you wanted to create ambient background noises.
  10999. This button will randomly play the selected clips in the background.
  11000. Play Clips
  11001. FALSE
  11002. isPlaying
  11003. delay
  11004. 1,2,3,4,5,6
  11005. clipList
  11006.  clip "tiger"
  11007. whatClip
  11008. Stop Clips
  11009. Select clips to play randomly
  11010. Clip Chooser
  11011. CdresetContents
  11012. enterpage
  11013. CdresetContents
  11014. .'+    +F
  11015. clips
  11016. whatClip
  11017. default
  11018. resetContents
  11019. notifyBefore 
  11020. resetContents
  11021. notifyAfter 
  11022. e= TRUE
  11023.     clips = resourceList(
  11024. <> NULL
  11025. whatClip
  11026. SPACE&
  11027. i"&"E&
  11028.         graphic 
  11029. = bitmap (mmMediaType 
  11030. CRLF 
  11031. e= FALSE
  11032. = default
  11033.  clip "Asymetrix Logo"
  11034.  clip "No No No"
  11035.  clip "toad"
  11036.  clip "tiger"
  11037.  clip "lion"
  11038.  clip "bird3"
  11039.  clip "bird2"
  11040.  clip "bird1"
  11041.  clip "CD Audio"
  11042.  clip "Chirp"
  11043. animation
  11044. digitalVideo
  11045. bitmap
  11046. cdAudio
  11047. sequencer
  11048. photoCD
  11049. videoDisk
  11050. waveAudio
  11051. overlay
  11052. RadioButtons
  11053. play clips
  11054. delay
  11055. buttonclick
  11056. buttonclick
  11057.     delay 
  11058. B"play clips" = 
  11059. Often
  11060. Normal
  11061. 20000
  11062. Rarely
  11063. How often
  11064. enterPage
  11065. leavePage
  11066. Remove trailing spaces
  11067. Remove trailing spaces
  11068. label
  11069. This function removes all trailing spaces, as well as other undesirable characters.
  11070. Handler:    trim(<string to trim>)
  11071. Parameters:
  11072. <string to trim>    The string from which you want to remove the trailing stuff.
  11073. Returns the modified string
  11074. -- removes trailing spaces, tabs, and crlf's
  11075. to get trim strng
  11076.     local charsToDrop
  11077.     set charsToDrop to space & crlf & tab
  11078.     while charcount(strng) > 0 and last char of strng is in charsToDrop
  11079.         clear last char of strng
  11080.     return strng
  11081. origPage
  11082. original
  11083. Remove trailing spaces
  11084. ASYM_BeenHere
  11085.  Standard ToolBook messages 
  11086. enterApplication
  11087.     -- link needed dll's
  11088.     linkDLL "tb40win.
  11089. displayBitsPerPixel()
  11090.     -- these gdi calls are used 
  11091. drawing separator 
  11092. getDeviceCaps(
  11093. moveTo(
  11094. lineTo(
  11095. setROP2(
  11096. gcreatePen(
  11097. deleteObject(
  11098. gselectObject(
  11099. Xuser
  11100. ggetDC(
  11101. releaseDC(
  11102. e"Using 
  11103. &Template" alias "helpTemplate" 
  11104. fhelptext\
  11105.          "Displays 
  11106. 4 on 
  11107. template."
  11108. backcolor (a "
  11109. " handler, below) depending on
  11110.     -- the 
  11111. colors displayed.
  11112. numColors()
  11113. > 16 
  11114. darkerBlue()
  11115. lighterBlue()
  11116. "navigationBar"
  11117.         -- initialize combobox 
  11118. "categories" 
  11119. "<All 
  11120. populate "
  11121. "Topics"
  11122. hideControls
  11123. leaveApplication
  11124. buttons 
  11125. modifying 
  11126. showControls
  11127. "CategoryButtons" 
  11128. "Navigation"
  11129. 7 - 60
  11130. deleted, updates 
  11131. category array (struct[][]) userProperty 
  11132.     -- Each row 
  11133. Bhas 
  11134. a list
  11135. numbers 
  11136. belonging 
  11137. that 
  11138. }. This 
  11139.     -- walks through 
  11140. , finding every instance 
  11141. found, 
  11142. removes 
  11143. "description 
  11144. example,
  11145. only"
  11146. Zx[][]
  11147. categoryStruct 
  11148. pageID 
  11149. dimensions(x)
  11150. itemOffset(
  11151. 7,x[i][2])
  11152. x[i][2]
  11153. a content 
  11154.         -- 
  11155. ensure 
  11156. label property
  11157.         -- 
  11158.  holds 
  11159. each 
  11160. fref 
  11161. "subTopicName" 
  11162.         -- 
  11163. necessary
  11164. "explanation"
  11165.         -- 
  11166. scrollbars, 
  11167. txtOver 
  11168. ;= 0 
  11169.  Utility handlers 
  11170. -- returns 
  11171. extractName t
  11172. tabOffset 
  11173. following a 
  11174. extractID t
  11175. lastTabLoc 
  11176. U(t) 
  11177. instances 
  11178. stripChar chr,strng
  11179.     hdc = 
  11180. windowhandle 
  11181.     retval = 
  11182. %,24)
  11183. 212,79.1875,71.6875
  11184. 180,75.125,100
  11185. backColor 
  11186. value
  11187. bckgrnds 
  11188. "intro,
  11189. curBack 
  11190. dealing 
  11191. structure 
  11192. during authoring 
  11193. debugging purposes)
  11194. showCategoryStruct
  11195. Zx[][]
  11196. x[i][1] 
  11197. 9& x[i][2] & 
  11198. handers 
  11199. twoDquicksort fArray[][],n,dtype
  11200. 4stbk_noSwap
  11201. twoDquicksrt 
  11202. 6, 1, 
  11203. E),n,
  11204. U l, r,n,
  11205. r > l 
  11206. x, l, ((l+r) 
  11207. (l+1) 
  11208. test 
  11209. i][n] < 
  11210. l][n] 
  11211. i][n] < 
  11212. l][n] 
  11213. i][n] < 
  11214. l][n] 
  11215. stbk_noswap
  11216. , l, 
  11217. -1,n,
  11218. , lst+1,r,n,
  11219.  a, b
  11220. farray[a][i]
  11221. b][i]
  11222. b][i] 
  11223.     mydir = 
  11224.     sen = sysErrorNumber
  11225.     se = 
  11226.     ss = 
  11227.     bref = 
  11228. u&"tmplhelp.tbk")
  11229. 1= ss
  11230. "Cannot 
  11231. 8TMPLHELP.TBK"
  11232.         vref = 
  11233. defaultpage 
  11234. "cbt4" 
  11235. r= se
  11236. -- returns the weekday 
  11237. beyond 1/1/1700: 
  11238. -- note: requires full year. Example: 
  11239. weekDay("1/1/1993")
  11240. -- also 
  11241. 8isLeapYear() function below
  11242. : pdate
  11243. aa list out 
  11244. %"m,d,y" 
  11245. "m/d/y"
  11246. following 
  11247. each month) 
  11248. days that have passed 
  11249. &o "0,31,59,90,120,151,181,212,243,273,304,334" 
  11250. numdays 
  11251. ielapsed since 1/1/1700 
  11252. (y-1700) 
  11253. y4-(y-1700) 
  11254. y100 +(y-1600) \
  11255. y400 + 365 * (y - 1700) + 
  11256. + d -1 
  11257. m <= 2 
  11258. k7 +1
  11259.      "Sunday,Monday,Tuesday,Wednesday,Thursday,Friday,Saturday" 
  11260. -- Returns TRUE 
  11261. a leap 
  11262. , FALSE 
  11263. -- NOTE: 
  11264. fuction 
  11265. a four digit 
  11266.  Find 
  11267. 1992 
  11268. leapYear(1992)
  11269. k4 = 0 
  11270. k100 <> 0) 
  11271. k400 = 0))
  11272. notifybefore 
  11273. showOrHideScrollbar
  11274. notifyAfter 
  11275.     --obj = 
  11276. J"details"
  11277. "> 0 
  11278. -- Displays 
  11279. scripted 
  11280. }on the 
  11281. allowing users
  11282. their scrips
  11283. buttonclick
  11284. Zretval
  11285. sysRuntime = 
  11286. "Scripts cannot be viewed 
  11287. qruntime version 
  11288. Multimedia ToolBook."
  11289.         -- 
  11290. reference 
  11291. appear 
  11292. dlgPage 
  11293. "scriptChooserDialog"
  11294.         -- 
  11295. list 
  11296. getObjectList(
  11297. currentobject
  11298. nameRef(currentObject) & 
  11299. ) = 1
  11300. obref 
  11301. "scriptObjects" 
  11302. %modal
  11303. -- display "friendly 
  11304. obtype 
  11305. obname 
  11306. -- keep 
  11307. mind that arrays are passed 
  11308. Hreference, 
  11309. Hvalue
  11310. twoDquicksort fArray[][] 
  11311. 2sortColumn,dtype
  11312. 4stbk_noSwap
  11313. twoDquicksrt 
  11314. C, 1, 
  11315. dimensions(
  11316. lo, hi,
  11317. hi > lo 
  11318. , lo, ((lo+hi) 
  11319. (lo+1) 
  11320. test 
  11321. stbk_noswap
  11322. , lo, lst-1,
  11323. +1,hi,
  11324. Ztemp
  11325. farray[a][i]
  11326. b][i]
  11327. b][i] 
  11328. "searchReplace"
  11329. searchString 
  11330. replaceString 
  11331. asWord 
  11332. function searches 
  11333. occurrences 
  11334. replaces 
  11335. -- If 
  11336. only where 
  11337. appears 
  11338. -- (A 
  11339. defined 
  11340. that 
  11341. preceded 
  11342. followed 
  11343. -- either 
  11344.  beginning 
  11345. txt, 
  11346. -- wordDelimit 
  11347. common punctuation 
  11348. mathematical operators.)
  11349. usearchFor,replaceWith,
  11350.     runningTotal = 1
  11351.     totalChars=
  11352.     searchLen=
  11353.     replaceLen=
  11354. are legally adjacent
  11355. = " " & 
  11356. k& "-+*/<>,()[];^=&.?':" & 
  11357. curTxt 
  11358.         curOffset = 
  11359.             startPos = (
  11360.             endPos = (
  11361. -- test 
  11362. occurance 
  11363. isolated 
  11364. p- 1) 
  11365. w+ 1 
  11366. "hour"
  11367. "Minute"
  11368. "AMPM"
  11369. minute 
  11370. value
  11371. #+ 1) 
  11372. %"00"
  11373. %"00"
  11374.  < 0 
  11375.  > 59
  11376. outside range 0 
  11377. %"00"
  11378. k12) + 1
  11379. %"00"
  11380. %"00"
  11381.  < 1 
  11382.  > 12
  11383. &&"out 
  11384. %"00"
  11385. + 1) 
  11386. %"00"
  11387. %"00"
  11388.  < 0 
  11389.  > 59
  11390. %"00"
  11391. initialize
  11392. 4OBJECT newHotwordID
  11393. %"hh : 
  11394. j: sec 
  11395. buttonClick
  11396.     whatClip = 
  11397. combobox "clip chooser"
  11398. $NULL
  11399. "Please 
  11400. xmmPlayable 
  11401. "This 
  11402. Smay cannot be played 
  11403.     oldTimeFormat = mmTimeFormat 
  11404.     channels = 
  11405.     samples = 
  11406.  rate"
  11407.     bitsPer = 
  11408.     startSpot = mmBeginPoint 
  11409.     stopSpot = mmEndPoint 
  11410. callMCI("
  11411. qtype waveaudio alias waveFile buffer 5","")
  11412. " && 
  11413. 0samplespersec" && 
  11414. Qitspersample" && 
  11415. tinput","")
  11416. record 
  11417. ","")
  11418. ","")
  11419. cTRUE
  11420. ("Enter a file 
  11421. fileName 
  11422. FALSE
  11423. filename && "already exists.
  11424. Try a different 
  11425. f"&OK" 
  11426. "&Cancel"
  11427. && " 
  11428. f"&OK" 
  11429. " && 
  11430. "Would you like 
  11431. hear" && 
  11432. && "now?" 
  11433. f"OK" 
  11434. close 
  11435. default
  11436. buttonClick
  11437.     whatClip = 
  11438. combobox "clip chooser"
  11439. 1NULL
  11440. "Please 
  11441. xmmPlayable 
  11442. "The specified 
  11443. iannot be played 
  11444. = "Stop 
  11445. mmStatus 
  11446. ) = "p"
  11447.         mmStop (
  11448. "closed"
  11449.             mmOpen 
  11450. mmMediaType 
  11451. "cdAudio"
  11452. "waveAudio"
  11453. "sequencer"
  11454. mmplay 
  11455. notify 
  11456. hold 
  11457. mmnotify 
  11458. , whatCommand, whatStatus
  11459.  = "successful" 
  11460. notifyBefore 
  11461. <> CLOSED
  11462.         mmClose 
  11463. notifyAfter 
  11464. buttonClick
  11465. selectedtextlines 
  11466. "clip chooser" = NULL
  11467. "Please 
  11468.     isPlaying 
  11469. = FALSE
  11470.  Clips"
  11471. = "Stop 
  11472. timernotify 
  11473. timerId 
  11474. timerStop(
  11475.             timerID 
  11476. notifyBefore 
  11477.     mmClose 
  11478. mmnotify whatClip, whatCommand, whatStatus
  11479.  = "mmplay" 
  11480.  = "successful" 
  11481. = timerStart("single",
  11482. (delay 
  11483. ),500,
  11484.     whatLines = 
  11485.     howMany = 
  11486.         whichOne = 
  11487. (howmany) 
  11488. mmPlayable 
  11489. &&"could 
  11490. xbe played."
  11491. buttonclick loc, isShift
  11492.     linkdLL "tb40win.dll"
  11493.         STRING    SetWinIniVar    (
  11494. 8dlg.
  11495. +OpenFileDlg    (
  11496. C,INT)
  11497.     whatItem = 
  11498. combobox "clip chooser"
  11499.     path=pathFromFile(
  11500. "filename")
  11501.     newFile = 
  11502. ("Select wavefile 
  11503. ,fileFromPath(
  11504. [,"Wave,*.
  11505. .", 1)
  11506. ("sounds",
  11507. r&","&
  11508. resetContents 
  11509.     unlinkDLL function 
  11510. "tb40dlg.
  11511. Vi+1 
  11512. notifyBefore 
  11513. resetContents 
  11514. notifyAfter 
  11515.     linkDLL "tb40dlg.dll"
  11516.         STRING     listToTextline    (
  11517.     linkdLL "tb40win.
  11518. 4    GetWinIniVar    (
  11519. [dropdownItems 
  11520.     soundList = getWinIniVar("sounds","")
  11521. -ds",
  11522. --        the 
  11523. Uhas a problem, 
  11524. returning empty
  11525. there are a lot 
  11526. entries. 255 
  11527. Rlimit?
  11528. &TAB&
  11529. &CRLF 
  11530. K","&
  11531. a","&
  11532. extra 
  11533.         selectedItem 
  11534.         whatWave = 
  11535. dropdownitems 
  11536. "filename" = 
  11537.     unlinkDLL function 
  11538. selectChange whatText
  11539. buttonClick
  11540.     whatClip = 
  11541. combobox "clip chooser" 
  11542. %<> NULL
  11543. (whatclip && "
  11544. 8" && 
  11545. & (whatBook 
  11546. =) & 
  11547. "Please 
  11548. xmmPlayable 
  11549. "The specified 
  11550. annot be played 
  11551. mmStatus 
  11552. "playing"
  11553.         mmStop 
  11554. X"tb40win.dll"
  11555.             INT mmYieldApp    ()
  11556.         mmVolume 
  11557. "display"*2
  11558. notify 
  11559. notifyAfter dialMove value
  11560. mmnotify
  11561. Xfunction "
  11562. notifyBefore 
  11563. --    Charles Hiestand & Tim Pearson, Asymetrix    1/94
  11564. Ctrl+Shift+Click 
  11565. used 
  11566. %the panic 
  11567. kill 
  11568. hung MIDI notes
  11569. /sustain pedal, which sustains a 
  11570. #roperty = 
  11571. does 
  11572. xunlink 
  11573. ~dlls except 
  11574. dialog box. 
  11575. {    loc, isShift, isCtrl
  11576. 4    s_channel, s_device, s_currentKey
  11577. ZSTACK objs
  11578. openMIDI
  11579. A <> 
  11580.         gli = 
  11581. ogliss
  11582. playMIDI 
  11583. ) = "down"
  11584. objectFromPoint(
  11585. xsus 
  11586. stopMIDI 
  11587.  = FALSE
  11588. = TRUE
  11589.  <> NULL
  11590. 4    s_hMidiOut, 
  11591. MidiOutShortMsg(
  11592. &packDword(192 + 
  11593. oprogram,0))
  11594. %44 + 
  11595. ovolume))
  11596. "Unable 
  11597. 28 + 
  11598. Z    pMem
  11599. X"KERNEL"
  11600.         WORD     GlobalAlloc            (
  11601. ,DWORD)
  11602.         POINTER    GlobalLock            (
  11603. !     Globalhandle        (
  11604. R    GlobalUnlock        (
  11605. i    GlobalFree            (
  11606. linkDLL
  11607. X"mmsystem.dll"
  11608.     midiOutOpen            (
  11609.     MidiOutReset        (
  11610.     MidiOutClose        (
  11611.     MidiOutGetNumDevs    ()
  11612. closeMIDI
  11613. %() <= 0
  11614. devices found"
  11615.  = getWinPointer(32)
  11616. MidiOutOpen(
  11617. 0,0,0)
  11618. freeWinPointer(
  11619.  nSize
  11620.     hMem
  11621. Z            retValue
  11622. bitAnd 0x0000FFFF
  11623. selector.
  11624. GlobalUnLock(
  11625. "Memory error occured.
  11626. Operation Aborted."
  11627. packDWord a, b, c
  11628. a + (b * 256) + (c * 65536)
  11629. notifyAfter 
  11630. notifyBefore customEdit obj
  11631. oeditWidget = 
  11632. -- "val" will always be 
  11633. 's there 
  11634. %part 
  11635. " syntax.
  11636. init, 
  11637.  sysToolBookDirectory & "tb40dlg.
  11638.         STRING    Dialog
  11639. SetValue            (
  11640. 1     GetValue            (
  11641.  "mmSystem.
  11642. odlgInit,"
  11643.  = i - 1
  11644.  + 1) 
  11645. "comboBox 
  11646.  = i - 1
  11647.  + 1) 
  11648.  = i - 1
  11649.  + 1) 
  11650.  = i - 1
  11651.  + 1) 
  11652. odlgBox,
  11653. getValue(
  11654. Bok") = 
  11655. |     = 
  11656. q     = 
  11657.     -- You can also 
  11658. these directly 
  11659. "mtb40.sbk" sysbook.
  11660.     unlinkDLL 
  11661. y & "
  11662. --    Charles Hiestand    6/94
  11663. -- MIDI expects a 
  11664. code (status 
  11665. 2 data bytes
  11666. each MidiOutShortMsg(). Windows 
  11667. see these 
  11668. 5 packed 
  11669. a dWord
  11670. -- analogous 
  11671. $ way 
  11672. :packs colors.
  11673. wants 
  11674. M high nibble 
  11675. f channel 
  11676. F, depending on 
  11677. , one 
  11678. -- Table 
  11679. "Channel Voice Messages":
  11680. --             
  11681.         +    low 
  11682. -- 0x80 = note off,
  11683. ,         volume
  11684. -- 0x90 = 
  11685. 1,         
  11686.       N.B. 
  11687. ) = 0 == 
  11688. -- 0xA0 = poly key pressure 
  11689. value
  11690. -- 0xB0 = control change,     
  11691. -- 0xC0 = program 
  11692. -- 0xD0    = 
  11693. -- 0xE0 = pitch bend,        
  11694.             lsb 
  11695. ,    msb 
  11696. can take a 
  11697.  0 - 15; 
  11698. : 0 - 127; 
  11699. : 0 - 127; 
  11700. : 0 - 127
  11701. : 0 - 120; 
  11702. : 0 - 127
  11703. -- This 
  11704. only uses 0x80, 0x90, 
  11705. -- For more information, 
  11706. standard 
  11707. specification
  11708. {    loc, isShift, isCtrl
  11709. 4    INT s_hMidiOut, s_program, s_channel, s_note, s_volume 
  11710. ZSTACK objs
  11711.     -- initialize parameters
  11712. V" -- try changing 
  11713. 's great fun
  11714. w = 0 -- 
  11715. won't 
  11716. zmuch
  11717. " -- kind 
  11718. like, which 
  11719. on a piano
  11720. = 127 -- 
  11721. , how hard 
  11722.  -- panic 
  11723. openMIDI
  11724. device
  11725. playMIDI
  11726. stopMIDI
  11727.  the 
  11728. that 
  11729. comment 
  11730. your 
  11731.     -- packDword 
  11732. a function found later 
  11733. thing, 
  11734. message 
  11735. actually plays 
  11736. "Unable 
  11737. 4    s_device, 
  11738. Z    pMem
  11739. X"KERNEL"
  11740.         WORD     GlobalAlloc        (
  11741. ,DWORD)
  11742.         POINTER    GlobalLock        (
  11743. C    GlobalUnlock        (
  11744. Z    GlobalFree        (
  11745. linkDLL
  11746. X"mmsystem.dll"
  11747.     midiOutOpen        (
  11748.     MidiOutReset        (
  11749.     MidiOutClose        (
  11750.     MidiOutGetNumDevs    ()
  11751. closeMIDI
  11752. %() <= 0
  11753. devices 
  11754.  = getWinPointer(32)
  11755. MidiOutOpen(
  11756. ,0,0,0,0)
  11757. freeWinPointer(
  11758.  <> NULL
  11759.  nSize
  11760.     hMem
  11761. Z            retValue
  11762. Globalhandle(
  11763. bitAnd 0x0000FFFF
  11764. selector.
  11765. GlobalUnLock(
  11766. "Memory error occured.
  11767. Operation Aborted."
  11768. packDWord a, b, c
  11769. a + (b * 256) + (c * 65536)
  11770. notifyAfter 
  11771. notifyBefore 
  11772. odisablePage && "
  11773. " && 
  11774. olevel)
  11775. oenabled 
  11776. FALSE
  11777. buttonClick
  11778. " && 
  11779. value
  11780. oprop_level 
  11781. "invalid 
  11782. widget:"&&
  11783. G &CRLF&\
  11784.             "must be ""
  11785. direction 
  11786. "Next,Previous,First,Last"
  11787. "", ""
  11788. "", ""
  11789. oprop_disablePage 
  11790. &CLRF&\
  11791. notifyBefore 
  11792. odisablePage && "
  11793. " && 
  11794. olevel)
  11795. oenabled 
  11796. FALSE
  11797. buttonClick
  11798. " && 
  11799. value
  11800. oprop_level 
  11801. "invalid 
  11802. widget:"&&
  11803. G &CRLF&\
  11804.             "must be ""
  11805. direction 
  11806. "Next,Previous,First,Last"
  11807. "", ""
  11808. "", ""
  11809. oprop_disablePage 
  11810. &CLRF&\
  11811. notifyBefore 
  11812. odisablePage && "
  11813. " && 
  11814. olevel)
  11815. oenabled 
  11816. FALSE
  11817. buttonClick
  11818. " && 
  11819. value
  11820. oprop_level 
  11821. "invalid 
  11822. widget:"&&
  11823. G &CRLF&\
  11824.             "must be ""
  11825. direction 
  11826. "Next,Previous,First,Last"
  11827. "", ""
  11828. "", ""
  11829. oprop_disablePage 
  11830. &CLRF&\
  11831. notifyBefore 
  11832. odisablePage && "
  11833. " && 
  11834. olevel)
  11835. oenabled 
  11836. FALSE
  11837. buttonClick
  11838. " && 
  11839. value
  11840. oprop_level 
  11841. "invalid 
  11842. widget:"&&
  11843. G &CRLF&\
  11844.             "must be ""
  11845. direction 
  11846. "Next,Previous,First,Last"
  11847. "", ""
  11848. "", ""
  11849. oprop_disablePage 
  11850. &CLRF&\
  11851. key, isShift, isControl
  11852.      -- N 
  11853. numeric, A 
  11854. alpha, - 
  11855. seperator, 
  11856. anything 
  11857.     templet = 
  11858.     -- user property
  11859. O = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz"
  11860.  = "0123456789"
  11861.  = " ,.-/"
  11862. caretLocation = 
  11863.         characterTyped = 
  11864. o(key)
  11865.         characterNumber = (
  11866. buttonClick
  11867. checkLinks
  11868.     drive = getCurrentDrive()
  11869. selectFile 
  11870. $&":\"& getCurrentDirectory(
  11871. A) &"\", 
  11872. W, FALSE
  11873. uncheckLinks
  11874. y, TRUE
  11875. --notifyAfter 
  11876. updateFileInfo
  11877. &activateInstance
  11878. notifyBefore 
  11879. = path, file
  11880. "*.*"
  11881.     fileList = getFileOnlyList(
  11882. F, "", "N")
  11883.     linkDLL sysToolBookDirectory & "tb40dos.dll"
  11884.         STRING 
  11885.     unlinkDLL 
  11886. iry & "
  11887. --stub 
  11888. prevent 
  11889. no notifyhandlers 
  11890. message exist
  11891. updateDirectoryInfo pathAndFile
  11892. keep 
  11893. causing ES 
  11894. selectChange newDrive
  11895. checkLinks
  11896. = TRUE
  11897.     drive = 
  11898. setCurrentDrive(
  11899. setCurrentDirectory(
  11900. ;&":")
  11901. updateDirectoryInfo 
  11902. Y&":.\"
  11903. updateFileInfo 
  11904. s&":.\"
  11905. selectFile 
  11906. &":.\"
  11907. = FALSE
  11908. uncheckLinks
  11909. enterDropdown
  11910. odropDownItems 
  11911. getDriveList()
  11912. notifyBefore 
  11913. ZSTRING fileList
  11914.     linkDLL sysToolBookDirectory & "tb40dos.dll"
  11915. bgetCurrentDrive()
  11916.         INT 
  11917.     unlinkDLL 
  11918. try & "
  11919. notifyAfter 
  11920. --stub 
  11921. prevent 
  11922. & handlers 
  11923. message exist
  11924.  pathAndFile
  11925. notifyBefore 
  11926. checkLinks
  11927.     drive = getCurrentDrive()
  11928.     path = getCurrentDirectory(
  11929. updateDirectoryInfo 
  11930. M&":.\"
  11931. updateFileInfo 
  11932. g&":.\"
  11933. setCurrentDirectory(
  11934. &":.\"&
  11935. &":.\"
  11936. selectFile 
  11937. &":.\"
  11938. &":.\"
  11939. oselectedTextlines
  11940. qrefCount 
  11941. DLLs requires leaving clean
  11942. uncheckLinks
  11943. ZSTRING fileList
  11944.  = getDirectoryOnlyList(
  11945. &"*", "N")
  11946. B = "."&CRLF&".."
  11947.     linkDLL sysToolBookDirectory & "tb40dos.dll"
  11948.         INT 
  11949.     unlinkDLL 
  11950. pry & "
  11951. notifyAfter 
  11952. --stub 
  11953. prevent 
  11954. no notifyhandlers 
  11955. message exist
  11956. pathAndFile
  11957. keep 
  11958. causing ES 
  11959. notifyBefore 
  11960.     linkDLL "user"
  11961.         WORD widTimerStart=SetTimer(
  11962. ,DWORD)
  11963. +End = KillTimer(
  11964.     translateWindowMessage 
  11965. windowhandle 
  11966.         on 0x0113 
  11967. clockTick 
  11968. otimerID 
  11969. operiod * 1000, 0)
  11970. notifyAfter 
  11971. widTimerEnd(
  11972.     unlinkDLL "
  11973. hWnd, msg, 
  11974. value
  11975. oprop_format 
  11976. buttonClick
  11977. MaxSelection 
  11978. omaxNumber
  11979. --This handler will limit the 
  11980. selectable lines 
  11981. --a multi-
  11982. list box.
  11983. Fcan be placed 
  11984. fwork 
  11985. fmore than one
  11986. It takes 
  11987.  parameter:
  11988. Represents 
  11989. maximum 
  11990. selections allowed
  11991. call 
  11992. following syntax:
  11993. ZLVselectedLine
  11994. ("Don't know 
  11995. . Please enter a positive integer."
  11996. (selectedTextLines 
  11997. Target) > Num
  11998. value
  11999. isType(INT,
  12000. -- here 
  12001. neatness, 
  12002. xreally necessary
  12003. buttonClick
  12004. XSelect 
  12005. --The 
  12006. allows 
  12007. exclusive 
  12008. 3handler will 
  12009. --multiple selections 
  12010. a list box 
  12011. %the specified 
  12012. xselected.
  12013. --Once 
  12014. other lines 
  12015. --become unselected.
  12016. Sort 
  12017. a single-
  12018. uinside a 
  12019. This 
  12020. can be placed 
  12021. work 
  12022. fmore than one 
  12023. takes 
  12024. paramter:
  12025. --        XLine: Represents 
  12026. call 
  12027. Xselect 
  12028. following syntax:
  12029. ZLVsel
  12030. ("Which 
  12031. Ushould we exclude?"
  12032. omyNumber 
  12033. selectedTextlines 
  12034. (LVSel)
  12035. selectedTextLines 
  12036. value
  12037. isType(INT,
  12038. onum 
  12039. "Please 
  12040. a positive integer."
  12041. 4chrOffset, textBuff
  12042. <> -1
  12043. @ = 0
  12044. ZnewOffset
  12045. chOff 
  12046. tL <> -1    
  12047.  <> 0 
  12048.  <> 0
  12049. odefaultAllowDrag 
  12050. endDrag targetobject, pageLoc
  12051. 4theSelectedText
  12052. ( <> 
  12053. = "0,0"
  12054. beginDrag
  12055. notifyBefore 
  12056. notifyAfter 
  12057. 4INT s_WM_DROPFILES
  12058. 0x0233
  12059.     linkDLL "SHELL"
  12060. 2DragAcceptFiles (WORD, 
  12061.      DragQueryCount = DragQueryFile (
  12062. v, DWORD, 
  12063. ? DragQueryValue = 
  12064. , POINTER, 
  12065. KERNEL"
  12066. | GlobalAlloc(
  12067. 5 GlobalLock(
  12068. GlobalUnlock(
  12069.  GlobalFree(
  12070. (sysClienthandle,1)
  12071.     translateWindowMessage 
  12072.         on 
  12073. filesDropped 
  12074. hwnd, wmsg, wp, lplo, lphi
  12075. ZhMem, pMem
  12076. = TRUE
  12077. cleanUp
  12078. l_count 
  12079. ( wp , -1 , 0, 0 )
  12080. objectFromPoint(
  12081. ) <> 
  12082. ) = "dropFiles"
  12083. 66,256)
  12084. (wp, 0, 
  12085. , 256 )
  12086. 1(0, 
  12087. (wp, i-1, 
  12088. , 256)
  12089. 1(0, 
  12090.  ) & 
  12091. GlobalUnLock(
  12092.         objs = 
  12093.         myCounter = 0
  12094. "OLE"
  12095. I* 200
  12096. b* 200
  12097. = False
  12098.     unTranslateWindowMessage 
  12099.     -- deal 
  12100. fdll refCount
  12101.     unlinkDLL "
  12102.     -- prevent E.S. 
  12103. xincluded
  12104. "track" 
  12105. pinNumber()
  12106. -- This handler jumps the slider 
  12107. each tick mark 
  12108. mouse 
  12109. moved
  12110. Zarray x[5], 
  12111.     -- find midpoint between 
  12112. lines renamed 
  12113. allow 
  12114. ;widgets on 
  12115. [i] = (((
  12116. U(i+6))-\
  12117. U(i+5)))/2 )+(
  12118. U(i+5))
  12119.         x[i] = (
  12120. U(i+5))-82
  12121.         pos = 
  12122. < pin[1]
  12123. "slider2" = x[1]
  12124.         When 
  12125. -- This handler jumps the slider 
  12126. each tick mark 
  12127. mouse 
  12128. moved
  12129. Zarray x[5], pin[4]
  12130.     -- find midpoint between 
  12131. 0i] = (((
  12132. U(i+1))-\
  12133. Ui))/2 )+(
  12134.         x[i] = (
  12135. Ui)-82
  12136.         pos = 
  12137. " = x[1]
  12138. " = x[2]
  12139. " = x[3]
  12140.         When 
  12141. " = x[4]
  12142. " = x[5]
  12143. -- moves the slider
  12144. xPix 
  12145. sysPageUnitsPerPixel
  12146. sliderMin 
  12147. sliderMax 
  12148. scale 
  12149. sliderBounds 
  12150. nearestPupp(
  12151. oldP 
  12152. nearestPUPP(
  12153. pos - 
  12154. oldMouseX 
  12155. sliderPos 
  12156. mysliderPos 
  12157. startSliderMove 
  12158. leftMButton 
  12159. primaryMouseButton() -- 
  12160. S-handed mousing
  12161. newMouseX 
  12162. newP 
  12163. b(x1,
  12164. 9-dx),x2-w)
  12165. n-x1)*
  12166. )/(x2-x1-w)+
  12167. sliderMove 
  12168. mySliderPos 
  12169. endSliderMove 
  12170. buttonClick
  12171.     linkDLL "USER"
  12172. LockWindowUpdate(WORD)
  12173. ZobjTracker
  12174. rObj 
  12175. 5& "," 
  12176. hideWithTrans 
  12177. , "dissolve 
  12178. showWithTrans 
  12179.     unlinkDLL "
  12180. .pObjList, pTrans
  12181. -- SHOW OBJECT LIST:
  12182. xNULL)
  12183. -- RESET 
  12184. , EAT PAINTING:
  12185. sysClienthandle)
  12186. lockWindowUpdate(0)
  12187. -- TRANSITION TO THIS PAGE:
  12188.     transition 
  12189. -- Implementation 
  12190. transition FX 
  12191. individual 
  12192. -- Syntax:
  12193. --    showWithTrans <
  12194. {list>, <
  12195. Eeffect>
  12196. --    hideWithTrans <
  12197. -- CJC
  12198. buttonClick
  12199.     linkDLL "USER"
  12200. LockWindowUpdate(WORD)
  12201. , "dissolve 
  12202. ), "wipe 
  12203.     unlinkDLL "user"
  12204. pObjList, pTrans
  12205. -- SHOW OBJECT LIST:
  12206. xNULL)
  12207. -- RESET 
  12208. , EAT PAINTING:
  12209. sysClienthandle)
  12210. lockWindowUpdate(0)
  12211. -- TRANSITION TO THIS PAGE:
  12212. key, isShift, isControl
  12213. ZSTRING characterTyped
  12214.  = ansitoChar(
  12215.     numberDigits = 
  12216. "$-+(" --"$1234567890+-."
  12217. s = "-"
  12218. "1234567890.)"
  12219. ~(")",
  12220. ) --doesn't 
  12221. zanything
  12222. -- let's 
  12223. asure the 
  12224. formatted correctly
  12225. = TRUE
  12226.     sS = 
  12227. = FALSE
  12228. "$(-"
  12229. inTheRed 
  12230. ~(")",
  12231. %"(" & sysCurrency & "#,##0.00" & ")"
  12232. BLACK
  12233. 7#0.00"
  12234. = "###.##"
  12235. "Error 
  12236. entry, please re-enter."
  12237. objectFromPoint(
  12238. isChild(
  12239. toggleInvert 
  12240. obuttonPressed
  12241. buttonClick 
  12242. FALSE
  12243. toggleObject
  12244. = TRUE
  12245. oinvertedButton <> 
  12246. R <> 
  12247.  objectInQuestion, parentInQuestion
  12248. $ <> 
  12249. notifyAfter 
  12250. Zstack bnds,mouseOffset
  12251. X"user"
  12252. getsystemmetrics(
  12253. * has swapped 
  12254. I buttons.
  12255. =23) >0
  12256. leftMouseButton 
  12257. targ 
  12258.         newloc = 
  12259. newLoc <> 
  12260. objectFromPoint(
  12261. "base" 
  12262. dropTarget 
  12263. checkObject 
  12264. oorigLoc
  12265. labelPosition 
  12266. value
  12267. notifyBefore initQuiz
  12268. moved
  12269. -- 13,14 
  12270. -- 11,12 
  12271.  9,10
  12272. sized
  12273. pupp 
  12274. syspageunitsperpixel
  12275. pwidth 
  12276.  * 10
  12277. pheight 
  12278.  * 10
  12279. topLeft 
  12280. mask 
  12281. topRight 
  12282. U"point" 
  12283. bottomLine 
  12284. sz > 
  12285. sz > 
  12286. syssuspendmessages 
  12287. distToP 
  12288. sz - 
  12289. -- returns a list 
  12290. two numbers: the 
  12291. followed 
  12292. zpossible.
  12293. grade
  12294. ZnumRight,totalNum
  12295. objs 
  12296. 0 = label 
  12297. -- initializes quiz
  12298. notifyBefore initQuiz
  12299. objCount 
  12300. -- use 
  12301. you want 
  12302. store 
  12303. state 
  12304. answers
  12305. -- that 
  12306. subject gave
  12307. Zretval
  12308.  & "," & 
  12309. -- restores 
  12310. stored value.
  12311. labelPosition 
  12312. -- moves 
  12313. labels 
  12314. their proper spots.
  12315. showRightAnswers
  12316. objName 
  12317. objLabel 
  12318. wrong 
  12319. original 
  12320. showWrongAnswers
  12321. origLoc 
  12322. bnds 
  12323. checkObject labelObj
  12324. "Correct!"
  12325. "Nope."
  12326. showing 
  12327. ,mode
  12328. showObjs
  12329. hideObjs
  12330. dropTarget
  12331. 4s_color,s_targ
  12332. capital 
  12333. updateDisplay nm,
  12334. Zlogical refresh
  12335.         -- 
  12336. we are still 
  12337. . If so, don't blank out 
  12338.         -- (otherwise 
  12339. flashes annoyingly)
  12340. newObj 
  12341. objectFromPoint(
  12342. xsent 
  12343. going 
  12344. ,mode.
  12345. notifyBefore 
  12346. state,
  12347. just a stub handler, so no error occurs 
  12348. around 
  12349. deal 
  12350. message.
  12351.     -- a 
  12352. that displays 
  12353. value.
  12354. xpix 
  12355. sysPageUnitsPerPixel
  12356. sliderMin 
  12357. sliderMax 
  12358. scale 
  12359. sliderBounds 
  12360. nearestPupp(
  12361. oldP 
  12362. nearestPUPP(
  12363. pos - 
  12364. oldMouseX 
  12365. sliderPos 
  12366. mysliderPos 
  12367. startSliderMove 
  12368. newMouseX 
  12369. newP 
  12370. b(x1,
  12371. 6-dx),x2-w)
  12372. e-x1)*
  12373. )/(x2-x1-w)+
  12374. sliderMove 
  12375. endSliderMove 
  12376. notifyBefore 
  12377. helptext 
  12378. statusbar
  12379.  = keyEnter
  12380. selectChange (
  12381.  = NULL
  12382.     oldCursor = 
  12383.     urls = dropdownitems 
  12384.         flag = 
  12385. CRLF&
  12386. QUOTE&
  12387.  "NETSCAPE"
  12388. "no server" 
  12389.         exe = internetBrowser 
  12390. "shell.dll"
  12391. WORD    FindExecutable        (STRING,
  12392. POINTER)
  12393. "tb40win.
  12394.  getMemBlock            (DWORD)
  12395. ZfreeMemBlock        (
  12396.             lpBuffer = 
  12397. @(256)
  12398. >buttonClick
  12399.             status = 
  12400. ("blank.htm",sysToolBookDirectory,
  12401. 2<= 32
  12402. "No browser could be located." & 
  12403. available on your 
  12404. 4, please associate the" && \
  12405.  &"*.
  12406.  && "file extension 
  12407. >buttonclick
  12408. = exe
  12409. &&URL)
  12410. buttonclick loc, isShift, isControl
  12411.     url = 
  12412. "URL"
  12413. >buttonClick
  12414.     oldCursor = 
  12415. QUOTE&
  12416.  "NETSCAPE"
  12417. "no server" 
  12418.         exe = internetBrowser 
  12419. "shell.dll"
  12420. WORD    FindExecutable        (STRING,
  12421. POINTER)
  12422. "tb40win.
  12423.  getMemBlock            (DWORD)
  12424. ZfreeMemBlock        (
  12425.             lpBuffer = 
  12426. @(256)
  12427.             status = 
  12428. ("blank.htm",sysToolBookDirectory,
  12429. 2<= 32
  12430. "No browser could be located." & CRLF & 
  12431. available on your 
  12432. 4, please associate the" && \
  12433.  &"*.
  12434.  && "file extension 
  12435. = exe
  12436. &&URL)
  12437. -- adds the 
  12438. navigation 
  12439. -- called on 
  12440. whenever 
  12441. 1combobox value 
  12442. -- Note: each 
  12443. will be 
  12444. like such:
  12445. -- <label 
  12446. zhangs out beyond 
  12447. edge 
  12448. used 
  12449. populate 
  12450. ZallTopics
  12451. X"tb40dlg.dll"
  12452. sortTextLines(
  12453. "All"
  12454.             -- walk every 
  12455. content backgrounds, 
  12456.             -- a list 
  12457. their labels.
  12458. bckgrnds 
  12459. "intro,description 
  12460. example,
  12461. only"
  12462. backRef 
  12463. pageRef 
  12464.             -- 
  12465. numbers 
  12466. category
  12467. trailing 
  12468.     -- update 
  12469.     -- adjust 
  12470. selectedTextlines 
  12471. U, navigate 
  12472. that 
  12473. extractID(
  12474. clicked.
  12475. buttonclick 
  12476. "navigationbar"
  12477. -- ToolBook sends 
  12478. message just 
  12479. 4displaying
  12480. -- the dropdown 
  12481. a comboBox
  12482. enterDropDown
  12483. updateDropDownList
  12484. -- puts 
  12485. Fcategories 
  12486. Tlist
  12487. ZmainStruct[][]
  12488. categoryStruct 
  12489. arraySize 
  12490. dimensions(
  12491. [i][1] 
  12492. odropDownItems 
  12493. "<All 
  12494. N>" & 
  12495. a combobox 
  12496. selectChange value
  12497.  selcted 
  12498.     -- navigation 
  12499. populate "
  12500. i][1]=
  12501. fmainstruct[i][2] 
  12502. -- kill 
  12503. , so 
  12504. goes 
  12505. leaveDropDown
  12506. 0,31,59,90,120,151,181,212,243,273,304,334
  12507. m,d,y
  12508. isLeapYear
  12509. Sunday,Monday,Tuesday,Wednesday,Thursday,Friday,Saturday
  12510. m/d/y
  12511. weekDay
  12512. ,"JdY
  12513. FALSE
  12514. isLeapYear
  12515. FALSE
  12516. Please choose a clip first.
  12517. Play Clips
  12518. clip chooser
  12519. Stop Clips
  12520. isPlaying
  12521.     timernotify
  12522. :timerId
  12523. :timerID
  12524. buttonClick
  12525. Play Clips
  12526. enterPage
  12527. Play Clips
  12528. leavePage
  12529. w,%"[
  12530. delay
  12531. Stop Clips
  12532. successful
  12533. single
  12534. :timerID
  12535. mmplay
  12536. mmnotify
  12537. whatLines
  12538. Play Clips
  12539. clip chooser
  12540. whatClip
  12541. could not be played.
  12542. :timerId
  12543. :timerID
  12544. timernotify
  12545. filename
  12546. Wave,*.wav
  12547. clip chooser
  12548. fileFromPath
  12549. SetWinIniVar
  12550. OpenFileDlg
  12551. sounds
  12552. Select wavefile for
  12553. newFile
  12554. OpenFileDlg
  12555. whatItem
  12556. 5SetWinIniVar
  12557. tb40win.dll
  12558. pathFromFile
  12559. CdresetContents
  12560. tb40dlg.dll
  12561. OpenFileDlg
  12562. SetWinIniVar
  12563. buttonclick
  12564. pathFromFile
  12565. fileFromPath
  12566. w,    #>
  12567. of book
  12568. mmYieldApp
  12569. Please choose a clip first.
  12570. Stop Clip
  12571. clip chooser
  12572. bmwhatBook
  12573. whatClip
  12574. whatClip
  12575. The specified clip cannot be played at this time.
  12576. tb40win.dll
  12577. playing
  12578. display
  12579. Play Clip
  12580. buttonClick
  12581. mmYieldApp
  12582. clip chooser
  12583. whatClip
  12584. playing
  12585. dialMove
  12586. mmYieldApp
  12587. tb40win.dll
  12588. Play Clip
  12589. mmnotify
  12590. Play Clip
  12591. enterPage
  12592. copenMIDI
  12593. s_device
  12594. <)channel
  12595. hplayMIDI
  12596. device
  12597. tstopMIDI
  12598. s_channel
  12599. s_currentKey
  12600. rPsustain
  12601. gliss
  12602. buttonDown
  12603. tstopMIDI
  12604. s_channel
  12605. s_currentKey
  12606. rPsustain
  12607. buttonUp
  12608. packDword
  12609. volume
  12610. Unable to play MIDI device
  12611. ECprogram
  12612. s_hMidiOut
  12613. s_channel
  12614. s_currentKey
  12615. MidiOutShortMsg
  12616. playMIDI
  12617. packDword
  12618. volume
  12619. Unable to stop MIDI device
  12620. s_hMidiOut
  12621. s_channel
  12622. MidiOutShortMsg
  12623. stopMIDI
  12624. freeWinPointer
  12625. s_device
  12626. MidiOutOpen
  12627. midiOutOpen
  12628. MidiOutShortMsg
  12629. MidiOutReset
  12630. MidiOutClose
  12631. MidiOutGetNumDevs
  12632. mmsystem.dll
  12633. KERNEL
  12634. closeMIDI
  12635. GlobalAlloc
  12636. GlobalLock
  12637. Globalhandle
  12638. GlobalUnlock
  12639. GlobalFree
  12640. s_hMidiOut
  12641. device
  12642. $bgetWinPointer
  12643. Unable to open MIDI device
  12644. MidiOutGetNumDevs
  12645. No MIDI devices found
  12646. openMIDI
  12647. s_device
  12648. B%MidiOutClose
  12649. s_hMidiOut
  12650. u0MidiOutReset
  12651. closeMIDI
  12652. GlobalAlloc
  12653. GlobalLock
  12654. getWinPointer
  12655. GlobalFree
  12656. GlobalUnLock
  12657. Globalhandle
  12658. Memory error occured.  Operation Aborted.
  12659. freeWinPointer
  12660. packDWord
  12661. copenMIDI
  12662. enterPage
  12663. copenMIDI
  12664. reader
  12665. closeMIDI
  12666. leavePage
  12667. closeMIDI
  12668. author
  12669. reader
  12670. editWidget
  12671. customEdit
  12672. .'+    +F
  12673. ,&H.&
  12674. ,&H.&
  12675. ,&H.&
  12676. .'+    +F
  12677. dlgBox
  12678. MidiOutGetNumDevs
  12679. comboBox device
  12680. volume
  12681. FALSE
  12682. <)channel
  12683. Dialog
  12684. SetValue
  12685. GetValue
  12686. vSetValue
  12687. button sustain
  12688. 8dlgInit
  12689. sPsustain
  12690. button ok
  12691. ECprogram
  12692. =)channel
  12693. device
  12694. gliss
  12695. FCprogram
  12696. MidiOutGetNumDevs
  12697. tb40dlg.dll
  12698. comboBox program
  12699. rPsustain
  12700. device
  12701. mmSystem.dll
  12702. comboBox volume
  12703. kgetValue
  12704. volume
  12705. button gliss
  12706. gliss
  12707. Dialog
  12708. comboBox channel
  12709. editWidget
  12710. w,    #?
  12711. disablePage
  12712. level
  12713. page of this
  12714. enterPage
  12715. w,    #?
  12716. go to
  12717. level
  12718. page of this
  12719. buttonClick
  12720. prop_level
  12721. invalid level for widget:
  12722. background, book
  12723. must be "background" or "book"
  12724. level
  12725. prop_level
  12726. level
  12727. First
  12728. must be "Next", "Previous", "First", or "Last"
  12729. invalid direction for widget:
  12730. Next,Previous,First,Last
  12731. disablePage
  12732. direction
  12733. direction
  12734. prop_disablePage
  12735. invalid disablePage:
  12736. First, last
  12737. must be "First" or "Last"
  12738. disablePage
  12739. prop_disablePage
  12740. disablePage
  12741. ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz
  12742. templet
  12743. seperator
  12744.  ,.-/
  12745. alpha
  12746. numeric
  12747. characterTyped
  12748. string
  12749. 0123456789
  12750. Etemplet
  12751. keyChar
  12752. Etemplet
  12753. enterField
  12754. w,    #>
  12755. vgetCurrentDirectory
  12756. getCurrentDrive
  12757. FALSE
  12758. selectFile
  12759. drive
  12760. uncheckLinks
  12761. buttonClick
  12762. jupdateFileInfo
  12763. activateInstance
  12764. fileList
  12765. getFileOnlyList
  12766. uncheckLinks
  12767. updateFileInfo
  12768. tb40dos.dll
  12769. getFileOnlyList
  12770. getCurrentDrive
  12771. getCurrentDirectory
  12772. checkLinks
  12773. tb40dos.dll
  12774. uncheckLinks
  12775. selectFile
  12776. updateDirectoryInfo
  12777. selectFile
  12778. setCurrentDirectory
  12779. drive
  12780. jupdateFileInfo
  12781. zeupdateDirectoryInfo
  12782. uncheckLinks
  12783. setCurrentDrive
  12784. selectChange
  12785. )getDriveList
  12786. uncheckLinks
  12787. enterDropdown
  12788. uncheckLinks
  12789. updateFileInfo
  12790. tb40dos.dll
  12791. getCurrentDrive
  12792. setCurrentDirectory
  12793. setCurrentDrive
  12794. getDriveList
  12795. checkLinks
  12796. tb40dos.dll
  12797. uncheckLinks
  12798. selectFile
  12799. updateDirectoryInfo
  12800. vgetCurrentDirectory
  12801. getCurrentDrive
  12802. jupdateFileInfo
  12803. drive
  12804. zeupdateDirectoryInfo
  12805. enterpage
  12806. vgetCurrentDirectory
  12807. getCurrentDrive
  12808. selectFile
  12809. setCurrentDirectory
  12810. drive
  12811. jupdateFileInfo
  12812. zeupdateDirectoryInfo
  12813. uncheckLinks
  12814. buttonDoubleClick
  12815. getDirectoryOnlyList
  12816. uncheckLinks
  12817. updateDirectoryInfo
  12818. getCurrentDirectory
  12819. getCurrentDrive
  12820. setCurrentDirectory
  12821. getDirectoryOnlyList
  12822. tb40dos.dll
  12823. checkLinks
  12824. tb40dos.dll
  12825. uncheckLinks
  12826. selectFile
  12827. updateFileInfo
  12828. period
  12829. SetTimer
  12830. widTimerStart
  12831. KillTimer
  12832. widTimerEnd
  12833. hfwidTimerStart
  12834. clockTick
  12835. :timerID
  12836. enterPage
  12837. widTimerEnd
  12838. :timerID
  12839. leavePage
  12840. format
  12841. clockTick
  12842. :timerID
  12843. clockTick
  12844. :timerID
  12845. clockTick
  12846. prop_format
  12847. format
  12848. prop_format
  12849. format
  12850. !MaxSelection
  12851. maxNumber
  12852. buttonClick
  12853. ,&H.&
  12854. maxNum
  12855. Don't know the maximum number of selections to allow. Please enter a positive integer.
  12856. MaxSelection
  12857. maxNumber
  12858. Please set this value to a positive integer.
  12859. maxNum
  12860. maxNumber
  12861. maxNum
  12862. DXSelect
  12863. buttonClick
  12864. ,&H.&
  12865. Which line should we exclude?
  12866. zmyNumber
  12867. XSelect
  12868. Please use a positive integer.
  12869. myNumber
  12870. .'+    +F
  12871. quickSort
  12872. default
  12873. sortSelf
  12874. s_noSwap
  12875. quickSrt
  12876. quickSort
  12877. quicksrt
  12878. s_noSwap
  12879. quickSrt
  12880. d_insertLineAux
  12881. insertLine
  12882. middleLine
  12883. insertLineAux
  12884. +    ,    /
  12885. +    ,    /
  12886. +    ,    /
  12887. +    ,    /
  12888. +    ,    /
  12889. .'+    +
  12890. index
  12891. numberItems
  12892. binarySearch
  12893. itemArray
  12894. keyChar
  12895. +    ,    /
  12896. +    ,    /
  12897. +    ,    /
  12898. +    ,    /
  12899. FALSE
  12900. upper
  12901. found
  12902. itemArray
  12903. binarySearch
  12904. 1,    "Q
  12905. textBuff
  12906. chrOffset
  12907. buttonDown
  12908. 1,    "Q
  12909. chOff
  12910. textBuff
  12911. chrOffset
  12912. buttonStillDown
  12913. textBuff
  12914. chrOffset
  12915. default
  12916. buttonUp
  12917. .'+    +F
  12918. default
  12919. mouseEnter
  12920. default
  12921. mouseLeave
  12922. field
  12923. theSelectedText
  12924. endDrag
  12925. theSelectedText
  12926. beginDrag
  12927. buttonDown
  12928. pinNumber
  12929. track
  12930. buttonStillDown
  12931. ,&H.&
  12932. 1,"JRY
  12933. ,&H.&
  12934. slider2
  12935. pinNumber
  12936. ,&H.&
  12937. 1,"JRY
  12938. ,&H.&
  12939. slider
  12940. buttonDown
  12941. sliderMove
  12942. startSliderMove
  12943. sliderMax
  12944. sliderMin
  12945. nearestPUPP
  12946. HendSliderMove
  12947. sliderMax
  12948. sliderBounds
  12949. sliderMin
  12950. mysliderPos
  12951. nearestPupp
  12952. leftMButton
  12953. mySliderPos
  12954. sliderPos
  12955. `primaryMouseButton
  12956. newMouseX
  12957. oldMouseX
  12958. buttonDown
  12959. ushowWithTrans
  12960. LockWindowUpdate
  12961. dissolve fast
  12962. nThideWithTrans
  12963. buttonClick
  12964. LockWindowUpdate
  12965. lockWindowUpdate
  12966. showWithTrans
  12967. LockWindowUpdate
  12968. lockWindowUpdate
  12969. hideWithTrans
  12970. ushowWithTrans
  12971. LockWindowUpdate
  12972. dissolve fast
  12973. wipe fast left
  12974. nThideWithTrans
  12975. buttonClick
  12976. LockWindowUpdate
  12977. lockWindowUpdate
  12978. showWithTrans
  12979. LockWindowUpdate
  12980. lockWindowUpdate
  12981. hideWithTrans
  12982. enterField
  12983. 1234567890.)
  12984. numberDigits
  12985. keyChar
  12986. inTheRed
  12987. ###.##
  12988. #,##0.00
  12989. Error in entry, please re-enter.
  12990. leaveField
  12991. z%    lYs    
  12992. label
  12993. grade
  12994. label
  12995. initQuiz
  12996. w,    #>
  12997. label
  12998. answers
  12999. ,&H.&
  13000. label
  13001. !LlabelPosition
  13002. label
  13003. answers
  13004. objName
  13005. !LlabelPosition
  13006. objLabel
  13007. label
  13008. showRightAnswers
  13009. objName
  13010. objLabel
  13011. label
  13012. b;origLoc
  13013. label
  13014. showWrongAnswers
  13015. label
  13016. label
  13017. checkObject
  13018. showObjs
  13019. hideObjs
  13020. zshowObjs
  13021. author
  13022. lYhideObjs
  13023. reader
  13024. reader
  13025. zshowObjs
  13026. lYhideObjs
  13027. enterPage
  13028. false
  13029. dropTarget
  13030. s_targ
  13031. s_color
  13032. -capital
  13033. PupdateDisplay
  13034. mouseenter
  13035. newObj
  13036. s_color
  13037. s_targ
  13038. PupdateDisplay
  13039. page,background
  13040. mouseleave
  13041. s_targ
  13042. s_color
  13043. PupdateDisplay
  13044. author
  13045. updateDisplay
  13046. sliderMove
  13047. startSliderMove
  13048. sliderMax
  13049. sliderMin
  13050. nearestPUPP
  13051. mysliderPos
  13052. HendSliderMove
  13053. sliderMax
  13054. sliderBounds
  13055. sliderMin
  13056. mysliderPos
  13057. nearestPupp
  13058. sliderPos
  13059. newMouseX
  13060. oldMouseX
  13061. buttondown
  13062. startSliderMove
  13063. yhelptext
  13064. statusbar
  13065. mouseEnter
  13066. statusbar
  13067. mouseLeave
  13068. keyChar
  13069. .'+    +F
  13070. ,&H.&
  13071. ,"J "
  13072. NETSCAPE
  13073. file extension with your browser.
  13074. freeMemBlock
  13075. false
  13076. oldCursor
  13077. If an internet browser is available on your system, please associate the
  13078. internetBrowser
  13079. No browser could be located.
  13080. internetBrowser
  13081. lpBuffer
  13082. getMemBlock
  13083. getMemBlock
  13084. freeMemBlock
  13085. tb40win.dll
  13086. FindExecutable
  13087. shell.dll
  13088. blank.htm
  13089. aFindExecutable
  13090. *.htm
  13091. no server
  13092. status
  13093. selectChange
  13094. .'+    +F
  13095. ,"J "
  13096. NETSCAPE
  13097. file extension with your browser.
  13098. freeMemBlock
  13099. oldCursor
  13100. If an internet browser is available on your system, please associate the
  13101. internetBrowser
  13102. No browser could be located.
  13103. internetBrowser
  13104. lpBuffer
  13105. getMemBlock
  13106. getMemBlock
  13107. freeMemBlock
  13108. tb40win.dll
  13109. FindExecutable
  13110. shell.dll
  13111. blank.htm
  13112. aFindExecutable
  13113. *.htm
  13114. no server
  13115. status
  13116. buttonclick
  13117. resize
  13118. mouseEnter
  13119. default
  13120. mouseLeave
  13121. selectObject
  13122. gsizePage
  13123. curDC
  13124. deleteObject
  13125. splitterBounds
  13126. endPos
  13127. getDC
  13128. hDCright
  13129. createPen
  13130. }releaseDC
  13131. splitter
  13132. hOldObjectleft
  13133. leftWindow
  13134. oldROP2left
  13135. minwidth
  13136. rightWindow
  13137. getsystemmetrics
  13138. -setROP2
  13139. getsystemmetrics
  13140. oldROP2right
  13141. windowRef
  13142. hOldObjectMain
  13143. hDCLeft
  13144. edrawLine
  13145. leftMost
  13146. maxwidth
  13147. wholeWindowWidth
  13148. rightMost
  13149. RightBorder
  13150. buttondown
  13151. lineTo
  13152. fromPoint
  13153. y!moveTo
  13154. toPoint
  13155. drawLine
  13156. HHupdateDropDownList
  13157. enterDropDown
  13158. <All topics>
  13159. categoryStruct
  13160. updateDropDownList
  13161. topics
  13162. <All topics>
  13163. Tvpopulate
  13164. categoryStruct
  13165. selectChange
  13166. leaveDropDown
  13167. myTopic
  13168. itemOffset
  13169. prompt
  13170. categories
  13171. Choose categories for topic
  13172. categoryStruct
  13173. label
  13174. enterPage
  13175. itemOffset
  13176. categories
  13177. itemLoc
  13178. categoryStruct
  13179. categoryStruct
  13180. compileCategories
  13181. Using system sounds
  13182. label
  13183. ASYM_BeenHere
  13184. Using system sounds
  13185. This example shows you how you can add and change your Windows system sounds using openscript.
  13186. The combobox on the right allows you to choose from your Windows system sounds. The field below it shows the file associated with the selected sound.
  13187. To change the file associated with a sound, press the button at the end of the field.
  13188. To test the sound, press the Play Sound button.
  13189. Clip Chooser
  13190. 3DFXRenderError                    ,J:\ARNAPPS\SAMPLES\CARHORN.WAV                    ,3DFXRenderError
  13191. 3DFXRenderError                    ,J:\ARNAPPS\SAMPLES\CARHORN.WAV                    ,3DFXRenderError
  13192. 3DFXRenderSuccess                    ,chimes.wav                    ,3DFXRenderSuccess
  13193. MailBeep                    ,C:\WINDOWS\POP.WAV                    ,MailBeep
  13194. NavigatorCantJump                    ,                    ,NavigatorCantJump
  13195. NavigatorCantOpen                    ,                    ,NavigatorCantOpen
  13196. NavigatorExit                    ,                    ,NavigatorExit
  13197. NavigatorJump                    ,                    ,NavigatorJump
  13198. NavigatorRange                    ,                    ,NavigatorRange
  13199. NavigatorSearch                    ,                    ,NavigatorSearch
  13200. NavigatorStart                    ,                    ,NavigatorStart
  13201. RingIn                    ,ringin.wav                    ,RingIn
  13202. RingOut                    ,ringout.wav                    ,RingOut
  13203. StartProgram                    ,CHIMES.WAV                    ,StartProgram
  13204. SystemAsterisk                    ,C:\WINDOWS\CHORD.WAV                    ,SystemAsterisk
  13205. SystemDefault                    ,ding.wav                    ,SystemDefault
  13206. SystemExclamation                    ,C:\WINDOWS\WAVES\SIMPSON\HUH.WAV                    ,SystemExclamation
  13207. SystemExit                    ,C:\WINDOWS\WAVES\AWWMAN.WAV                    ,SystemExit
  13208. SystemHand                    ,chord.wav                    ,SystemHand
  13209. SystemQuestion                    ,C:\WINDOWS\WAVES\HAL.WAV                    ,SystemQuestion
  13210. SystemStart                    ,C:\WINDOWS\WAVES\PANOHOH.WAV                    ,SystemStart
  13211. Play Clips
  13212. filename
  13213. buttonClick
  13214. buttonClick
  13215. playSound(
  13216. "filename")
  13217. clip "bird2"
  13218. whatClip
  13219. Play Sound
  13220. System Sounds
  13221. filename
  13222. filename
  13223. J:\ARNAPPS\SAMPLES\CARHORN.WAV
  13224. Browse Wave Files
  13225. Associated wave file
  13226. enterpage
  13227. Check for State Abbreviation
  13228. origPage
  13229. original
  13230. Check for State Abbreviation
  13231. label
  13232. Check for State Abbreviationr
  13233. This function tests a string to determine if it contains a valid U.S. state abbreviation.
  13234. Handler:  isState (<state>)
  13235. Parameters:
  13236. <state>: the string to check
  13237. Returns true if state is a valid abbreviation, false if not.
  13238.    true    string is a valid state abbreviation
  13239.    false    string is not a valid state abbreviationnnnnnnnnn
  13240. to get isState stateToCheck
  13241.     --The bars serve as item separators and to ensure that 
  13242.     --string is correct length, in this case two characters.
  13243.     get "|" & stateToCheck & "|"
  13244.     if it is in "|AL|AK|AZ|AR|CA|CO|CT|DE|DC|FL|GA|HI|ID|IL|"&\
  13245.      "IN|IA|KS|KY|LA|ME|MD|MA|MI|MN|MS|MO|MT|NE|NV|NH|NJ|NM|"&\
  13246.      "NY|NC|ND|OH|OK|" & \
  13247.      "OR|PA|RI|SC|SD|TN|TX|UT|VT|VA|WA|WV|WI|WY|" 
  13248.         return true
  13249.     else
  13250.         return false
  13251. ASYM_BeenHere
  13252. scriptChooserDialog
  13253. .'+    +
  13254. scriptObjects
  13255. enterpage
  13256. cancel
  13257. keychar
  13258. scriptObjects
  13259. cancel
  13260. selectedtextlines 
  13261. "scriptObjects" 
  13262. keyEnter
  13263. editscript 
  13264.     close 
  13265. origPage
  13266. original
  13267. scriptChooserDialog
  13268. label
  13269. ASYM_BeenHere
  13270. &View the Selected Script:
  13271. bottomLine
  13272. topLine
  13273. scriptObjects
  13274. editScript
  13275. buttondoubleclick
  13276. editScript
  13277. selectedTextLines 
  13278.         -- the full 
  13279. {reference 
  13280. hiding 
  13281.         -- 
  13282. each 
  13283. 9,t)+1 
  13284. U(t) 
  13285. textscrolled
  13286. ComboBox "Jump to URL combobox"    ComboBox id 4 of Page id 233
  13287. Button "Jump to URL field"    Button id 2 of Page id 233ectangle "Face Plate 1"    Rectangle id 38 of Page id 212
  13288. Rectangle "Back Plate 1"    Rectangle id 8 of Page id 2125"    Button id 12 of Page id 209
  13289. Button "0"    Button id 11 of Page id 209
  13290. Button "num3"    Button id 10 of Page id 209
  13291. Button "num2"    Button id 9 of Page id 209
  13292. Button "num1"    Button id 8 of Page id 209
  13293. Group "Chart One"    Group id 7 of Page id 209
  13294. Button "spin"    Button id 18 of Page id 209 id 3 of Page id 210
  13295. buttonclick
  13296. buttonclick
  13297. View Script
  13298. cancel
  13299. buttonclick
  13300. buttonclick
  13301. Cancel
  13302. 95051020295421948707239773794
  13303. ASYM_TpID
  13304. .'+    +
  13305. categories
  13306. categoryStruct
  13307. enterPage
  13308. ,&H.&
  13309. extractName
  13310. frefText
  13311. extractID
  13312. categories
  13313. stwoDQuickSort
  13314. categoryStruct
  13315. updateCategories
  13316. categories 
  13317. the "
  13318. ZmainStruct[][]
  13319. categoryStruct 
  13320. fref 
  13321. arraySize 
  13322. dimensions(
  13323. ni][1] 
  13324. i][2] 
  13325. selectedTextlines 
  13326. -- recreates structure 
  13327. updateCategories
  13328. frefText 
  13329. i][1] 
  13330. extractName(t)
  13331. i][2] 
  13332. extractID(t)
  13333. twoDQuickSort 
  13334. origPage
  13335. original
  13336. label
  13337. ASYM_BeenHere
  13338. bottomLine
  13339. topLine
  13340. Categories
  13341. Arrays    150,127,126
  13342. Calling Windows Functions    215,206,205,195,194,193,171,166,133,113,112
  13343. Conversion help    128
  13344. Data Validation    218,185,183,181,180,179,76,74,28
  13345. Date functions    192,191,190,137,136,135,134
  13346. DDE    78,103,77
  13347. Debugging    126
  13348. DOS Utilities    133,194,189,85,83
  13349. File Maintenance    189,82
  13350. Navigation    178,177,175,174,149,91
  13351. Sorting and Searching    200,201,165,164,150,127,130,82,109
  13352. String Manipulation    140,132,131,130,129
  13353. Useful Functions    194,193,155,132,129,115
  13354. Widgets    225,224,222,223,221,220,218,215,214,213,212,211,210,209,208,207,205,204,203,202,201,200,199,198,197,196,192,191,190,189,188,185,183,181,180,179,178,177,175,174,166,141,140,139
  13355. Multimedia    172,166,163,161,160,157,158,154
  13356. Graphs    210,209,208,207
  13357. Sliders    213,212,211
  13358. Keyboards    222,223,166,214
  13359. Miscellaneous    128,225,224,216,215,195,188
  13360. Fields    218,206,205,204,203,202,201,200,199,198,197,184,140,141,196
  13361. CBT    232,231,230,229,228,227,226,221,220
  13362. Internet    233,145
  13363. cancel
  13364. categories
  13365. Untitled
  13366. Enter new category
  13367. buttonclick
  13368. -- prompts 
  13369. qcategory
  13370. buttonclick
  13371. ("Enter 
  13372. f"Untitled"
  13373. "categories" 
  13374. &New...
  13375. ,&H.&
  13376. cancel
  13377. extractName
  13378. frefText
  13379. You already have another topic with this name.
  13380. false
  13381. categories
  13382. Enter new name for this category.
  13383. found
  13384. buttonclick
  13385. -- allows user 
  13386. rename a category
  13387. buttonclick
  13388. fref 
  13389. "categories"
  13390. frefText 
  13391. selectedTextLines 
  13392. tabLoc 
  13393. ("Enter 
  13394. tabloc-1 
  13395. found 
  13396.             -- 
  13397. asure 
  13398. xalready used.
  13399. i <> 
  13400. extractName(
  13401. "You 
  13402. rhave another 
  13403.         -- update 
  13404. &Rename...
  13405. w,    #>
  13406. Cancel
  13407. extractName
  13408. Delete category
  13409. categories
  13410. buttonclick
  13411. a category
  13412. buttonclick
  13413. fref 
  13414. "categories"
  13415. selectedTextlines 
  13416. "Delete 
  13417. n" && 
  13418. & extractName(t) & 
  13419. & "?" 
  13420. f"OK" 
  13421. "Cancel"
  13422. &Delete
  13423. updateCategories
  13424. buttonclick
  13425. buttonclick
  13426. updateCategories
  13427.     close 
  13428. buttonclick
  13429. -- closes dialog box
  13430. buttonclick
  13431. &Cancel
  13432. Modify the selected category.
  13433. Money
  13434. label
  13435. Money
  13436. MS Sans Serif
  13437. Mammals
  13438. House Pets
  13439. Smell Bad
  13440. tegories
  13441. 4,5,0
  13442. 4,5,0
  13443. arial
  13444.  Animals
  13445. Household Pets
  13446. Stinky Animals
  13447. categoryStruct
  13448. System
  13449. 5/10/95 11:19:38 PM
  13450. Charles Hiestand
  13451. MS Sans Serif
  13452. 5/23/95 9:07:00 AM
  13453. s Hiestand
  13454. System
  13455. Arial
  13456. MS Sans Serif
  13457. 5/12/95 3:18:54 AM
  13458. les Hiestand
  13459. MS Sans Serif
  13460. urier New
  13461. Courier New
  13462. g"g#%~k
  13463. V-g"[
  13464. Data Valadation
  13465. 76,75,80,74,71,28,73,72
  13466. 78,79,103,77
  13467. DOS Utilities
  13468. 84,85,81,83,86
  13469. File Maintenance
  13470. 100,82,99
  13471. Functions
  13472. 108,88,87
  13473. Menus
  13474. Navigation
  13475. Programming Aids
  13476. 98,106,97
  13477. Resources
  13478. 92,94,93
  13479. Sorting and Searching
  13480. 82,107,109
  13481. Useful Objects
  13482. 95,96
  13483. MS Sans Serif
  13484. '&%~k
  13485. Arial
  13486. 6O*K~k
  13487. Courier New
  13488. 6O*K~k
  13489. Arial
  13490. Arial
  13491. Courier New
  13492. SubtopicName
  13493. script
  13494. SubtopicName
  13495. script
  13496. Menus
  13497. Navigation
  13498. Sorting and Searching
  13499. 130,82,109
  13500. String Manipulation
  13501. 132,131,130,129
  13502. Useful Functions
  13503. 132,129,115
  13504. Widgets
  13505. 141,140,139,138
  13506. Useful Objects
  13507. 95,96
  13508. MS Sans Serif
  13509. System
  13510.  Sans Serif
  13511. MS Sans Serif
  13512. Arial
  13513. r]g"=
  13514. Arial
  13515. r]g"=
  13516. Arial
  13517. System
  13518. Arial
  13519. w#7?@
  13520. <BookPath>
  13521. MS Sans Serif
  13522. Arrays
  13523. 150,127,126
  13524. Calling Windows Functions
  13525. 171,166,133,113,112
  13526. Conversion help
  13527. Data Validation
  13528. 76,74,28
  13529. Date functions
  13530. 137,136,135,134
  13531. 78,103,77
  13532. Debugging
  13533. DOS Utilities
  13534. 85,83
  13535. File Maintenance
  13536. Navigation
  13537. 149,91
  13538. Sorting and Searching
  13539. 165,164,150,127,130,82,109
  13540. String Manipulation
  13541. 132,131,130,129
  13542. Useful Functions
  13543. 155,132,129,115
  13544. Widgets
  13545. 166,141,140,139
  13546. Multimedia
  13547. 172,166,163,161,160,157,158,154
  13548. unctions
  13549. 133,113,112
  13550. Conversion help
  13551. Data Validation
  13552. 76,74,28
  13553. Date functions
  13554. 137,136,135,134
  13555. 78,103,77
  13556. Debugging
  13557. DOS Utilities
  13558. 85,83
  13559. File Maintenance
  13560. Navigation
  13561. 149,91
  13562. Sorting and Searching
  13563. 150,127,130,82,109
  13564. String Manipulation
  13565. 132,131,130,129
  13566. Useful Functions
  13567. 132,129,115
  13568. Widgets
  13569. 141,140,139
  13570. Multimedia
  13571. Arial
  13572. C:\HOOK\SAMPLES\
  13573. :HDMEDIAPATH
  13574. MS Sans Serif
  13575. MS Sans Serif
  13576. Arial
  13577. MS Sans Serif
  13578. 7:55:52 PM
  13579. MS Sans Serif
  13580. MS Sans Serif
  13581. Charles Hiestand
  13582. info_LastSavedBy
  13583. 5/10/95 11:18:54 PM
  13584. info_LastSaved
  13585. Charles Hiestand
  13586. Arial
  13587. Mike Florence
  13588. MS Sans Serif
  13589. MS Sans Serif
  13590. Arial
  13591. Charles Hiestand
  13592. Page id 143
  13593. D array"
  13594. navigationBar
  13595. Page id 1
  13596. categoryPicker
  13597. Page id 3
  13598. categoryMaintenance
  13599. Page id 8
  13600. Category Maintenance
  13601. newTopic
  13602. Page id 121
  13603. New Topic
  13604. scriptChooserDialog
  13605. OpenScript Library
  13606. Topic Categories
  13607. description and script
  13608. tline
  13609. SubtopicName
  13610. in,ms
  13611. ThreeDeeRect
  13612. bottomLine
  13613. topLine
  13614. script
  13615. false
  13616. keydown
  13617. .',    "
  13618. script
  13619. scrolling
  13620. rectangle
  13621. enterpage
  13622. key,isShift,isCtrl
  13623. caretLocation
  13624. notifyBefore 
  13625. fref 
  13626. txtOver 
  13627. 8= 0 
  13628. Script:
  13629. script
  13630. buttonclick
  13631. -- puts the contents 
  13632. lipboard
  13633. buttonclick
  13634. fref 
  13635. Copy Script
  13636. in,ms
  13637. ThreeDeeRect
  13638. bottomLine
  13639. topLine
  13640. explanation
  13641. .',    "
  13642. scrolling
  13643. rectangle
  13644. explanation
  13645. enterpage
  13646. notifyBefore 
  13647. fref 
  13648. "explanation" 
  13649. txtOver 
  13650. 8= 0 
  13651. enterpage
  13652. 9505100024091471309664492898
  13653. ASYM_TpID
  13654. Check for Alpha Non-Numeric Data
  13655. ButtonStillDown Page Navigation
  13656. Scrollbar Group Scripts
  13657. itemOffset()
  13658. &File
  13659. &Open...    Ctrl+O
  13660. &Save    Ctrl+S
  13661. Save &As...
  13662. saveas
  13663. &Run...
  13664. E&xit    Alt+F4
  13665. &Edit
  13666. &Undo    Ctrl+Z
  13667. Cu&t    Ctrl+X
  13668. &Copy    Ctrl+C
  13669. &Paste    Ctrl+V
  13670. paste
  13671. A&uthor    F3
  13672. author
  13673. &Help
  13674. &Contents    F1
  13675. index
  13676. 9505100003581459202212381666
  13677. ASYM_TpID
  13678. Navigation
  13679. rightBounds
  13680. sizeStuff
  13681. splitter
  13682. sizePage
  13683. sizePage
  13684. xpix 
  13685. sysPageUnitsPerPixel
  13686. rightBounds 
  13687. B"splitter" 
  13688. "sizeStuff" 
  13689. -- keep 
  13690. focuswindow 
  13691. origPage
  13692. original
  13693. Navigation
  13694. label
  13695. ASYM_BeenHere
  13696. Choose a category:
  13697. Topics of this category:::
  13698. sizeStuff
  13699. categories
  13700. <All topics>ows Functions
  13701. <All topics>
  13702. Arrays
  13703. Calling Windows Functions
  13704. Conversion help
  13705. Data Validation
  13706. Date functions
  13707. Debugging
  13708. DOS Utilities
  13709. Fields
  13710. File Maintenance
  13711. Graphs
  13712. Internet
  13713. Keyboards
  13714. Miscellaneous
  13715. Multimedia
  13716. Navigation
  13717. Sliders
  13718. Sorting and Searching
  13719. String Manipulation
  13720. Useful Functions
  13721. Widgets
  13722. navButtons
  13723. .'+    +
  13724. extractID
  13725. topics
  13726. tcount
  13727. navigationbar
  13728. buttonclick
  13729. buttonclick
  13730. "navigationbar"
  13731. fref 
  13732.         -- 
  13733. asure 
  13734. isn't empty
  13735. tcount 
  13736. selectedTextLines 
  13737.         -- 
  13738.         -- 
  13739. beginning
  13740.             -- 
  13741.             -- navigate
  13742. extractID(
  13743.         -- 
  13744. , so focuswindow reverts 
  13745. previous
  13746. .'+    +
  13747. extractID
  13748. topics
  13749. navigationbar
  13750. buttonclick
  13751. -- navigates 
  13752. buttonclick
  13753. "navigationbar"
  13754. fref 
  13755.         -- 
  13756. asure there 
  13757. selectedTextLines 
  13758.         -- 
  13759.         -- 
  13760. going 
  13761.             -- 
  13762.             -- 
  13763. extractID(
  13764.         -- 
  13765. y, so focusWindow reverts 
  13766. search
  13767. ,&H.&
  13768. cancel
  13769. bckgrnds
  13770. description and script,description and example,description only
  13771. searchPhrase
  13772. <Custom search>
  13773. No instances of
  13774. categories
  13775. found.
  13776. topics
  13777. Enter key word to search for.
  13778. explanation
  13779. backRef
  13780. Tvpopulate
  13781. buttonclick
  13782. buttonclick
  13783. Zfoundlist
  13784. ("Enter key 
  13785. searchPhrase 
  13786. ZallTopics
  13787. bckgrnds 
  13788. "description 
  13789. example,
  13790. only"
  13791. backRef 
  13792. pref 
  13793. "explanation" 
  13794. ) = 0
  13795. "No instances 
  13796. " && 
  13797. populate 
  13798. combobox "categories" 
  13799. "<Custom 
  13800. topics
  13801.     <Introduction>    145
  13802. Add and Remove    188
  13803. Add number of days to date    136
  13804. Alpha Keyboard    222
  13805. Auto Buttons    176
  13806. Auto Page Name    174
  13807. Auto Page Number    175
  13808. Auto-scroll Field    141
  13809. Auto-scroll Recordfield    184
  13810. Better Combobox    202
  13811. Binary Insertion of Textline    109
  13812. Bring ToolBook Window to Front    77
  13813. Bring up the Command Window    103
  13814. ButtonStillDown Page Navigation    91
  13815. Calculator    214
  13816. Calendar    192
  13817. Can't Touch This    224
  13818. Changing the behavior of BACK    149
  13819. Check for Alpha Non-Numeric Data    28
  13820. Check for State Abbreviation    74
  13821. Content Buttons    178
  13822. Controlling volume of clips    163
  13823. Convert textlines to list    132
  13824. Converting to Binary, Hex, Octal    128
  13825. Create Full-Text Search Index    164
  13826. Dial    226
  13827. Directories and Files    189
  13828. Disabling task switching    171
  13829. Display 2-D array values    126
  13830. Drag a Textline    203
  13831. Drag and Drop Text    204
  13832. Dragging Objects    151
  13833. Dragging objects into bins    227
  13834. Ex Select Field    199
  13835. Exit and restart windows    133
  13836. Exploding Pie    210
  13837. Get Current Path Setting    83
  13838. Get day of week from date    134
  13839. Get Free Disk Space on a Drive    85
  13840. Get number of days in month    137
  13841. Get path of current book    155
  13842. Get Printer Resolution    193
  13843. Initialize Excel Conversation    78
  13844. Insert/Overwrite field    140
  13845. International Time and Date    191
  13846. isLeapYear()    135
  13847. itemOffset()    115
  13848. Labels    228
  13849. Limit Length of Entry String    76
  13850. Making mmSource-paths book relative    154
  13851. Matching Quiz    229
  13852. Max Select Field    198
  13853. Money    218
  13854. Mouse browsing    230
  13855. Multiple Choice    221
  13856. Multiple OLE Drag and Drop    205
  13857. Object Effect    215
  13858. Outline    196
  13859. Outline Rearranger    197
  13860. Perform Full-Text Search    165
  13861. Pie Chart    209
  13862. Play clip in a loop    158
  13863. Play clip on enter page    172
  13864. Playing MIDI Directly    166
  13865. Playing random sounds    160
  13866. QWERTY Keyboard    223
  13867. Ratchet    212
  13868. Recording wave files from CD    157
  13869. Remove given char from string    129
  13870. Remove trailing spaces    131
  13871. Scale Slider    213
  13872. Search and replace in a string    130
  13873. Search Path for File    82
  13874. Searching Field    201
  13875. Self-sorting Field    200
  13876. Show all objects of page    170
  13877. Show-off    206
  13878. Showing a web page    233
  13879. Simple Bar Chart    207
  13880. Simple Line Chart    208
  13881. Slider    231
  13882. Sliders    211
  13883. Slow-motion    216
  13884. Slow-motion    225
  13885. Sorting a 1-D array    150
  13886. Sorting a 2-D array    127
  13887. Spin controls    139
  13888. Tab Widget    177
  13889. Time and Date    190
  13890. Timer    232
  13891. True and False    220
  13892. Useful Patterns    185
  13893. Using a RECT structure    113
  13894. Using system sounds    161
  13895. Using windows pointers    112
  13896. Validate Numerical Data, 1    179
  13897. Validate Numerical Data, 2    181
  13898. Validate Text, 1    180
  13899. Validate Text, 2    183
  13900. Windows and DOS versions    194
  13901. Windows or WfW    195
  13902. categoryButtons
  13903. CategorySetup
  13904. categoryPicker
  13905. buttonclick
  13906. buttonclick
  13907. "categoryPicker" 
  13908. %modal
  13909. Topic Categories
  13910. CategoryMaintenance
  13911. categoryMaintenance
  13912. buttonclick
  13913. buttonclick
  13914. "categoryMaintenance" 
  13915. %modal
  13916. Category Maintenance
  13917. newTopic
  13918. buttonup
  13919. newTopic 
  13920. %modal
  13921. New topic
  13922. w,    #>
  13923. .',    "
  13924. Cancel
  13925. categories
  13926. Cannot delete the last page of this background.
  13927. label
  13928. Delete topic
  13929. buttonclick
  13930. buttonclick
  13931. "Delete 
  13932. M" && 
  13933. & label 
  13934. & "?" 
  13935. f"OK" 
  13936. "Cancel"
  13937. "Cannot delete the 
  13938. selectchange 
  13939. combobox "categories" 
  13940. Delete topic
  13941. splitter
  13942. 9505120338253316150322691735
  13943. ASYM_TpID
  13944. origPage
  13945. original
  13946. label
  13947. ASYM_BeenHere
  13948. 950510001920146841920264640
  13949. ASYM_TpID
  13950. origPage
  13951. original
  13952. label
  13953. ASYM_BeenHere
  13954. bottomLine
  13955. topLine
  13956. categories
  13957. Arrays
  13958. Calling Windows Functions
  13959. Conversion help
  13960. Data Validation
  13961. Date functions
  13962. Debugging
  13963. DOS Utilities
  13964. File Maintenance
  13965. Navigation
  13966. Sorting and Searching
  13967. String Manipulation
  13968. Useful Functions
  13969. Widgets
  13970. Multimedia
  13971. Graphs
  13972. Sliders
  13973. Keyboards
  13974. Miscellaneous
  13975. Fields
  13976. Internet
  13977. prompt
  13978. Choose categories for topic "Showing a web page"y, Hex, Octal""e"
  13979. compileCategories
  13980. buttonclick
  13981. buttonclick
  13982. compileCategories
  13983.     close 
  13984. buttonclick
  13985. -- dismiss dialog box
  13986. buttonclick
  13987.     close 
  13988. &Cancel
  13989. Scripts examples in library.tbk.
  13990. Scripts examples in library.tbk. Page 
  13991. shown
  13992. showgrid
  13993. showcustompropertydialog
  13994. showall
  13995. sharedscript
  13996. settings
  13997. setmenuname
  13998. setmenuitemname
  13999. setmenuitemhelptext
  14000. setmenuhelptext
  14001. sethandlerscript
  14002. separator
  14003. sendnotifybefore
  14004. sendnotifyafter
  14005. sendmail
  14006. selectionchanged
  14007. selecteditem
  14008. selectedhotwords
  14009. selectchange
  14010. seekfile
  14011. searchforhelpon
  14012. scrollable
  14013. screentopageunits
  14014. screentoframe
  14015. screentoclient
  14016. schemabuilder
  14017. saveoptimize
  14018. saveonclose
  14019. saveasexe
  14020. roundedcorners
  14021. richtext
  14022. rgbstroke
  14023. rgbfill
  14024. rgbcolor
  14025. revertfocus
  14026. resources
  14027. resourcelist
  14028. resourceinfo
  14029. resourcehandle
  14030. resourcecount
  14031. resource
  14032. reset
  14033. replace
  14034. release
  14035. regular
  14036. reference
  14037. readervisible
  14038. readerstatusbar
  14039. readerrightclick
  14040. raised
  14041. radiobutton3d
  14042. queryobject
  14043. querybuilder
  14044. queryaddedextension
  14045. propertylist
  14046. propertyinfo
  14047. propertyenumstring
  14048. propertyenumrange
  14049. propertyenumint
  14050. propertyenum
  14051. procedures
  14052. printsetup
  14053. printerscaling
  14054. previouspage
  14055. previewhelp
  14056. previewfile
  14057. preeffect
  14058. posteffect
  14059. popupmenu
  14060. popup
  14061. point
  14062. playsound
  14063. pgcacheused
  14064. pgcachesize
  14065. pgcachemisses
  14066. pgcachehits
  14067. pgcachedeleted
  14068. percentfreespace
  14069. pastespecial
  14070. parentwindow
  14071. parenthandle
  14072. palette
  14073. pageunitstoscreen
  14074. pageunitstoframe
  14075. pageunitstoclient
  14076. pagesi
  14077. Arrays
  14078. 150,127,126
  14079. Calling Windows Functions
  14080. 215,206,205,195,194,193,171,166,133,113,112
  14081. Conversion help
  14082. Data Validation
  14083. 218,185,183,181,180,179,76,74,28
  14084. Date functions
  14085. 192,191,190,137,136,135,134
  14086. 78,103,77
  14087. Debugging
  14088. DOS Utilities
  14089. 133,194,189,85,83
  14090. File Maintenance
  14091. 189,82
  14092. Navigation
  14093. 178,177,175,174,149,91
  14094. Sorting and Searching
  14095. 200,201,165,164,150,127,130,82,109
  14096. String Manipulation
  14097. 140,132,131,130,129
  14098. Useful Functions
  14099. 194,193,155,132,129,115
  14100. Widgets
  14101. 225,224,222,223,221,220,218,215,214,213,212,211,210,209,208,207,205,204,203,202,201,200,199,198,197,196,192,191,190,189,188,185,183,181,180,179,178,177,175,174,166,141,140,139
  14102. Multimedia
  14103. 172,166,163,161,160,157,158,154
  14104. Graphs
  14105. 210,209,208,207
  14106. Sliders
  14107. 213,212,211
  14108. Keyboards
  14109. 222,223,166,214
  14110. Miscellaneous
  14111. 128,225,224,216,215,195,188
  14112. Fields
  14113. 218,206,205,204,203,202,201,200,199,198,197,184,140,141,196
  14114. 232,231,230,229,228,227,226,221,220
  14115. Internet
  14116. ,G3596,Keyboard Settings
  14117. ,G3599,MIDI Settings
  14118. ,S3604,Program:
  14119. ,S3605,Volume:
  14120. ,S3606,Channel:
  14121. ,S3607,Device:
  14122. BUTTON gliss,B3602,TRUE
  14123. BUTTON sustain,B3603,FALSE
  14124. COMBOBOX program,C3608,&0
  14125. COMBOBOX volume,C3609,0
  14126. COMBOBOX channel,C3610,&0
  14127. COMBOBOX device,C3611,&0
  14128. BUTTON ok,B1,TRUE
  14129. BUTTON cancel,B2,FALSE
  14130. Disabling task switching
  14131. label
  14132. ASYM_BeenHere
  14133. Disabling task switchingE
  14134. The script below allows you to turn on or off task-switching (Windows 3.X only). When task-switching is on the user may not change tasks by using Alt+Tab, Alt+Shift+Tab, or Ctrl+Esc. They may still activate other windows by clicking on them.
  14135. To turn off task-switching:
  14136.     set taskSwitching() to FALSE
  14137. To turn task-switching back on:
  14138.     set taskSwitching() to TRUE
  14139. to set taskSwitching to LOGICAL mode
  14140.     if mode
  14141.         untranslateWindowMessage 0x0112 for sysWindowHandle
  14142.     else
  14143.         translateWindowMessage for sysWindowHandle
  14144.             on 0x0112    send WM_SYSCOMMAND
  14145.         end
  14146. to handle WM_SYSCOMMAND    hWnd, wMsg, wp, lpLo, lpHi
  14147.     if wp <> 0xF050 and wp <> 0xF040 and wp <> 0xF130
  14148.       --SC_PREVWINDOW, SC_NEXTWINDOW, and SC_TASKLIST
  14149.         forward to system
  14150. AkU'9
  14151.